I am currently working on a java-base cross-platform software distributor and I chose to use native OS mechanisms to prevent the users from having to do any setup before hand.
I chose JSCH for SSH2 and JACOB for Java. I realize that JACOB limits me to Windows as the starting host, but that is something I can live with.
I am writing a wrapper around JACOB to use some of the native mechanisms for talking to the target via WMI and I am running into a little issue. I am trying to retrieve a list of ALL the properties available for a given Win32_ class object and I haven't been able to do it.
This link shows you can do it in VB http://www.vbsedit.com/scripts/misc/wmi/scr_1333.asp and I was wondering if anyone had been able to figure it out when using JACOB.
EDIT : (code snippet)
item = enumVariant.nextElement().toDispatch();
//Dispatch.class returns a variant which can convert to java form
String serviceName = Dispatch.call(item, "Name").toString();
String servicePath = Dispatch.call(item,"PathName").toString();
int servicePID = Dispatch.call(item,"ProcessId").getInt();
//System.out.println("Service: "+serviceName+" ServicePath: "+servicePath+" PID: "+servicePID);
//System.out.println(serviceName+" "+servicePath+" "+servicePID);
list.add(serviceName+" "+servicePID);
Code above shows that I can ask for individual properties but there isn't a good way to ask for ALL properties.