Windows Integrity nPartition Guide
Troubleshooting
Using WMIOP.EXE to pinpoint problems
Chapter 6
151
Using WMIOP.EXE to pinpoint problems
When relying on multiple software components that are running simultaneously,
locating the source of a problem can sometimes be difficult. In cases where an error
message does not adequately describe the source of the problem, or when the error could
have multiple causes, using the “wmiop.exe” utility that is included with the WMI
Mapper component can help track the problem down.
Wmiop.exe is installed in the %PEGASUS_HOME%\bin directory. Since this directory
is added to the PATH during installation, wmiop can be executed from any directory. If it
cannot, that is your first indication that something is wrong, most likely that your PATH
environment variable is not set correctly.
Syntax for the wmiop utility is described below (an abbreviated usage explanation can
also be viewed from the command line by running wmiop with no options):
Usage:
wmiop <cimoperation> [arg, ...]
Implemented operations (not case sensitive) are:
getClass|gc <class>
enumerateClassNames|ecn [ <class> ]
getInstance|gi <class> [ list ]
enumerateInstances|ei <class>
enumerateInstanceNames|ein <class>
getProperty|gp <class> { ask | list } [ <propnam> ]
setProperty|sp <class> { ask | list } [ <propnam> [ <value> ] ]
deleteClass|dc <class>
createInstance|ci <class>
modifyInstance|mi <class> [ list ]
deleteInstance|di <class> [ list ]
Examples:
wmiop ecn
wmiop enumerateinstancenames Win32_OperatingSystem
wmiop gi Win32_Process list
wmiop ei Win32_ComputerSystem
Environment variables: