次の方法で共有


How to run wmi service in a standalone host process?

Open services.msc console, you can find Windows Management Instrumentation service, I.E., "WMI", whose name is winmgmt, it has following description,

"Provides a common interface and object model to access management information about operating system, devices, applications and services. If this service is stopped, most Windows-based software will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start."

Winmgmt service usually was hosted together with other services, sometime in order to debug wmi service process conveniently, you might want to host the winmgmt service in a standalone host process. In order to achieve that, you can try either of the following in commandline window,

1)

net stop winmgmt

winmgmt /standalonehost

net start winmgmt

OR 2)

net stop winmgmt

sc config winmgmt type= own

net start winmgmt

OR 3) According to https://support.microsoft.com/kb/2002335

net stop winmgmt

rundll32 %WINDIR%\system32\wbem\WMISvc.dll, MoveToAlone 4

 net start winmgmt

After that, you can debug the wmi service process by running following commandline "windbg.exe -psn winmgmt"

Comments

  • Anonymous
    January 24, 2012
    沙发

  • Anonymous
    January 25, 2012
    You are quick. Thanks for leave a comment, there will be more blogs after win8 RTM.