Wednesday, 25 January 2017

Restarting WMI Services Using Command Line


Restarting WMI Services Using Command Line

Starting Winmgmt Service
The following procedure describes how to start the WMI service.

To start Winmgmt Service
At a command prompt, enter net start winmgmt [/].
For more information about the switches that are available, see winmgmt. You use the built-in Administrator account or an account in the Administrators group running with elevated rights to start the WMI service. For more information, see User Account Control and WMI.

Stopping Winmgmt Service
The following procedure describes how to stop the WMI Service.

To stop Winmgmt Service
At a command prompt, enter net stop winmgmt.

Other services that are dependent on the WMI service also halt, such as SMS Agent Host or Windows Firewall.
Windows 2000: For WMI failures that occur because of improper provider unloading, the REG_SZ registry key value should be set to 1 (one). The default value is 0 (zero).
HKLM\Software\Microsoft\WBEM\
CIMOM\Force Clean Shutdown
winmgmt

Winmgmt is the WMI service within the SVCHOST process running under the LocalSystem account. In all cases, the WMI service automatically starts when the first management application or script requests connection to a WMI namespace. For more information, see Starting and Stopping the WMI Service.

Windows 2000 and Windows NT 4.0: The WMI service runs as a separate service process.
When run from the command prompt, the WMI service has the following switches.

The full error that appears in the Event Viewer is
WinMgmt could not initialize the core parts.This could be due to a badly installed 
version of WinMgmt, WinMgmt repository upgrade failure, 
insufficient disk space or insufficient memory.

To resolve this error and recreate any missing or corrupt registry entries, perform the following steps:
  1. Start a command-line session.
  2. Unregister any WMI service (also known as WinMgmt) performance libraries by typing
    winmgmt /clearadap 
  3. Stop all running copies of the WMI service by typing
    winmgmt /kill 
  4. Unregister the WMI service by typing
    winmgmt /unregserver 
  5. Register the WMI service by typing
    winmgmt /regserver 
  6. Register any WMI service performance libraries by typing
    winmgmt /resyncperf

No comments:

Post a Comment