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

Restore old Right-click Context menu in Windows 11

Restore old Right-click Context menu in Windows 11 - Microsoft Community 


reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

Restore the old Context Menu in Windows 11

  1. Right-click the Start button and choose Windows Terminal.

  2. Copy the command from below, paste it into the Windows Terminal Window, and press enter.

    1. reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

  3. Restart File Explorer or your computer for the changes to take effect.

  4. You would see the Legacy Right Click Context menu by default.


Restore Modern Context menus in Windows 11

To undo this change, in a Terminal Window, execute this command:

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f