Using wbemtest.exe to troubleshoot WMI:
If hardware manufacturer is HP:
cscript wmiDataCollector.vbs <RemoteHost> <UserName> <Password> ..\HPHardwareDataCollector.xml > hwinfo.txt
If hardware manufacturer is DELL:
cscript wmiDataCollector.vbs <RemoteHost> <UserName> <Password> ..\DELLHardwareDataCollector.xml > hwinfo.txt
Example:
cscript wmiDataCollector.vbs apmtest test test123 ..\DELLHardwareDataCollector.xml > hwinfo.txt
cscript wmiDataCollector.vbs localhost ..\DELLHardwareDataCollector.xml > hwinfo.txt