Thursday, May 30, 2024

PowerShell commands Get Installed programs by name and Identifying number and veriosn

 


#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


Remove-Item -Path "C:\Users\Public\Desktop\Navisworks Manage 2024 (BIM 360).lnk" -Force


net localgroup administrators /delete "azuread\name@domain.com"

# use /add /delete

No comments: