WMI4Java icon indicating copy to clipboard operation
WMI4Java copied to clipboard

Issues running WMI4Java with jPowershell as engine

Open nicolastrres opened this issue 7 years ago • 1 comments

Hello, I am getting some issues while using WMI4Java with jPowershell as the engine on Windows 10. When I try to execute this WMI4Java.get().getRawWMIObjectOutput("Win32_NetworkAdapterConfiguration") the response is flaky and very slow, sometimes it returns the list of my network adapters and sometimes it returns an empty string. However, when I execute the same code using VBScript engine, I get the correct results and much faster than when using jPowershell.

I was wondering what is the difference between both and when is recommended to use one vs the other?

nicolastrres avatar Aug 29 '18 16:08 nicolastrres

config.put("maxWait", "20000"); Is Hard coded in WMIPowershell, looks Some machines are responding little slow, is there an api when I can pass the config?

parthbulusu avatar Nov 22 '19 17:11 parthbulusu