I’m a full-time SCCM admin. All of the systems that I support have the SCCM client installed on them. If you don’t have SCCM 07/12 then I’m sorry to say this WMI class doesn’t exist. However, for those who do, here’s a great tip!
This is something I use often when I simply want to find out what kind of software is installed on a system.
Get-WmiObject -ComputerName $ComputerName -Namespace 'root\cimv2\sms' -Query "SELECT * FROM SMS_InstalledSoftware" | Select-Object ARPDisplayName,ProductVersion
This extremely simply WMI query is one of those staple PowerShell lines I use all the time.