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 off if \{%1\}==\{\} @echo Syntax: WBEMMSI ANSWER&goto :EOF set %1=N call :MSII %1>nul 2>&1 goto :EOF :MSII set qry=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Manager\Subcomponents" /V wbemmsi set fnd1=FIND /I "wbemmsi" set fnd2=FIND /I "0x1" for /f "Tokens=1-3" %%a in ('%qry%^|%fnd1%^|%fnd2%') do call set %1=YTo 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%\inf\wbemmsi.inf and press Enter.
4. Type REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Manager\Subcomponents" /V wbemmsi /T REG_DWORD /F /D 1 and press Enter.