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:
At :line:2 char:14
+ get-wmiobject <<<< -class Win32_Product -ComputerName fs01 | Select-Object name
What am I doing wrong?