Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
Using WMI
 Starting and Stopping the WMI Servi...
Starting and Stopping the WMI Service

WMI runs as a service with the display name "Windows Management Instrumentation" and the service name "winmgmt". WMI runs automatically at system startup under the LocalSystem account. If WMI is not running, it automatically starts when the first management application or script requests connection to a WMI namespace.

Several other services are dependent upon the WMI service, depending on the operating system version that the system is running. For example, the Windows Firewall service is dependent on WMI in Windows XP and Windows Server 2003, but not in Windows Vista. The SMS Agent Host is dependent on WMI in all of those operating system versions.

Starting Winmgmt Service

The following procedure describes how to start the WMI service.

Aa826517.wedge(en-us,VS.85).gifTo start Winmgmt Service

  • At a command prompt, enter net start winmgmt [/<switch>].

    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.

Aa826517.wedge(en-us,VS.85).gifTo stop Winmgmt Service

  1. At a command prompt, enter net stop winmgmt.
  2. 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

Related topics

Using the WMI Command-Line Tools

 

 

Send comments about this topic to Microsoft

Build date: 3/9/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Launching a web site on a remote server using WMI      OccamsRazor ... Thomas Lee   |   Edit   |   Show History

I want to launch a web site on a remote server using WMI. I tried the following command:

wmic /node:%%a process call create "IEXPLORE.EXE http://www.google.com"

And I monitored the remote server that I was trying to run it on, but iexplor.exe never launched.

Any ideas or help would be much appreciated.

[tfl - 20 07 09] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at http://forums.microsoft.com/msdn or the MSDN Newsgroups at

http://www.microsoft.com/communities/newsgroups/en-us/ . You are much more likely get a quicker response using the forums than through the Community Content. For specific help about:
Visual Studio :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C &;;
SQL Server :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C &;;
.NET Framework :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C &;;

Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker