Wednesday 5 February 2014

Windows Server 2003 doesn't have Win32_Products CLass by default

I'm in the process of writing a prerequisite checking script to deploy PowerShell to all our server and I came across a little annoying error that prevented me from using the Win32_Product Class to check if the .NET Framework was installed on remote machine.

After coming across this Windows Management Infrastructure Blog I discovered an additional gotcha where the Win32_Product class must be added to Windows Server 2003. This can be achieved by adding the "WMI Windows Installer Provider" Windows component under Management and Monitoring tools in Add/Remove Windows Components.

Thanks to Steve Paruszkiewicz [MSFT] for pointing this one out.

No comments:

Post a Comment