JSI Tip 9971. WMI support is NOT automatically installed on Windows Server 2003?

Jerold Schulman

December 13, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

WMI support is an optional component in Windows Server 2003.

To install it, using the GUI:

1. Open Control Panel.

2. Open the Add or Remove Programs applet.

3. Press the Add/Remove Windows Components button.

4. Select the Management & Monitoring Tools item.

5. Press the Details button.

6. Check the WMI Windows Installer Provider box.

7. Press OK.

8. Press Next.

9. Complete the on-screen instructions.

To determine if WMI support is installed:

call WBEMMSI ANSWER

Where ANSWER is a call directed environment variable that will contain a Y if WMI support is installed, or an N if it is not installed.

WBEMMSI.bat contains:

@echo offif {%1}=={} @echo Syntax: WBEMMSI ANSWER&goto :EOFset %1=Ncall :MSII %1>nul 2>&1goto :EOF:MSIIset qry=REG QUERY "HKLMSOFTWAREMicrosoftWindowsCurrentVersionSetupOC ManagerSubcomponents" /V wbemmsiset fnd1=FIND /I "wbemmsi"set fnd2=FIND /I "0x1"for /f "Tokens=1-3" %%a in ('%qry%^|%fnd1%^|%fnd2%') do call set %1=Y

To install WMI support via the command-line:

1. Insure that the Installation Sources and SourcePath Value Names point to the available installation source.

2. Open a CMD.EXE window.

3. Type rundll32 setupapi,InstallHinfSection WBEMMSI 128 %SystemRoot%infwbemmsi.inf and press Enter.

4. Type REG ADD "HKLMSOFTWAREMicrosoftWindowsCurrentVersionSetupOC ManagerSubcomponents" /V wbemmsi /T REG_DWORD /F /D 1 and press Enter.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like