Skip to content

Instantly share code, notes, and snippets.

@webtroter
Last active November 19, 2024 04:11
Show Gist options
  • Save webtroter/aa4a6ff94366e1fe61393ce68c1d78cb to your computer and use it in GitHub Desktop.
Save webtroter/aa4a6ff94366e1fe61393ce68c1d78cb to your computer and use it in GitHub Desktop.
Windows 11 Right Click Menu - Enable and Disable the old/legacy menu with PowerShell

Enable and Disable the Legacy Right-Click Menu

Use these commands to enable or disable the legacy right-click menu.

Reason

I wanted a pure PowerShell way to edit the registry since most I saw used reg.exe.

Usage

Usage Enable-LegacyRightClickMenu.ps1 to have the old right-click menu back.

Get-Item "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" | Remove-Item -Force -Recurse
Restart-Computer -Confirm
New-Item "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Force | Set-ItemProperty -Name "(default)" -Value ""
Restart-Computer -Confirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment