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 'rootcimv2sms' -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.
Join the Jar Tippers on Patreon
It takes a lot of time to write detailed blog posts like this one. In a single-income family, this blog is one way I depend on to keep the lights on. I'd be eternally grateful if you could become a Patreon patron today!Become a Patron!
Subscribe to Adam the Automator
Get the latest posts delivered right to your inbox