We help IT Professionals succeed at work.

Help getting a list of applications installed on a remote computer using powershell

ndalmolin_13
ndalmolin_13 asked
on
Hello All,

I can't see what I'm doing wrong with this one.  If I run the following command, I get a list of applications that are on my local pc (works great).

get-wmiobject -class Win32_Product | Select-Object Name

If I try to run the command against a remote computer as follows:

get-wmiobject -class Win32_Product -ComputerName fs01 | Select-Object name

I get the following "invalid class" message:

Invalid class
At :line:2 char:14
+       get-wmiobject <<<<  -class Win32_Product -ComputerName fs01 | Select-Object name

What am I doing wrong?  

Nick


Comment
Watch Question

What OS are you using on your computer and the remote computer?

Author

Commented:
My computer is running XP pro

The remote computers will bee running one of the following:
Server 2000 SP4
Server 2003 SP2
Server 2008
Try this:

get-wmiobject -class Win32_Product -Computer fs01 | Select-Object name

-Computer not -ComputerName

Author

Commented:
No luck.

Author

Commented:
I think I found the problem.  I just read something that stated Win32_Programs is not installed by default on Windows 2000 Server or Windows Server 2003.

Nick
Commented:
You could always hit the remote registry and grab all the software installed from there?