Hi Jon,
I dont think this is a bug in Get-WMIObject. On an XP SP2 it works as
expected. On a Windows Server 2003 SP1 box looks like WMI windows installer
provider is not installed by default. So please open a documentation bug to
capture this.
Further investigation revealed that WMI Windows Installer Provider is an
optional component on Windows Server 2003. To install this provider, open
the Control Panel Add/Remove Programs -> and click Add/Remove Windows
Components. Select Management and Monitoring Tools check box then click
Details. Select the WMI Windows Installer Provider check box and click OK.
I got the following output on XP SP2:
PS C:\Documents and Settings\kriscv> Get-WmiObject -Class
Win32_Product -ComputerName .
IdentifyingNumber : {121634B0-2F4A-11D3-ADA3-00C04F52DD53}
Name : Windows Installer Clean Up
Vendor : Microsoft Corporation
Version : 2.05.00.0000
Caption : Windows Installer Clean Up
IdentifyingNumber : {C229F511-623E-4B3D-A3D6-1A191337737F}
Name : Outlook Conference Room Finder
Vendor : Microsoft
Version : 2.7.1
Caption : Outlook Conference Room Finder
IdentifyingNumber : {133E57E2-C6FD-4FE4-8340-D6954A5909F2}
Name : .NET Framework Enterprise Code Access Security Policy
Vendor : Microsoft Corporation
Version : 1.0.2411.0
Caption : .NET Framework Enterprise Code Access Security Policy
--
Krishna[MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:OrNVjgSFHHA.3976@TK2MSFTNGP05.phx.gbl...
Is it a bug in Get-WmiObject or in the documentation?
Jon
"Krishna Vutukuri[MSFT]" <kriscv@online.microsoft.com> wrote in message
news:uWOVFOQFHHA.2464@TK2MSFTNGP06.phx.gbl...
Hi Jon,
Thanks for reporting this. Can you open a bug on connect?
--
Thanks
Krishna[MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:uyc9XlPFHHA.420@TK2MSFTNGP06.phx.gbl...
Under Working with Software Installations, p 90, instructed to use
Get-WmiObject -Class Win32_Product -ComputerName .
... which results in ..
PS C:\> Get-WmiObject -Class Win32_Product -ComputerName .
Get-WmiObject : Invalid class
At line:1 char:14
+ Get-WmiObject <<<< -Class Win32_Product -ComputerName .
PS C:\>