Wednesday, January 12, 2022

Get IdentifyingNumber for Intune ID

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