PowerShell command
#get all program Id numbers
Get-WMIObject -Query "SELECT * FROM Win32_Product" | FT
#Get AutoCAD programs
Get-WmiObject -Class Win32_Product | where vendor -eq Autodesk | select Name, Version
#Get by program name
Get-CimInstance -Filter 'NAME LIKE "%Desktop Connector%"' -ClassName 'Win32_Product' | Format-Table IdentifyingNumber, Name, Version, LocalPackage -Wrap
No comments:
Post a Comment