We're using the Windows Management Instrumentation (WMI) script that Listing 2 shows to audit the software installed on our Windows XP and Windows 2000 workstations. We recently installed the release candidate of Windows Server 2003, Enterprise Edition. The script fails to run on servers running this OS. Do you know why?
Your WMI script uses the Win32_Product class, which the WMI Windows Installer Provider services. In XP and earlier, the WMI Windows Installer Provider is installed by default. Unfortunately, that's no longer the case beginning with Windows 2003. Instead, the WMI Windows Installer Provider is an optional component, as Figure 1, page 10, shows. To install this provider, open the Control Panel Add/Remove Programs applet and click Add/Remove Windows Components. Select the Management and Monitoring Tools check box, then click Details. Select the WMI Windows Installer Provider check box, and click OK.