Skip to content

Instantly share code, notes, and snippets.

@krymtkts
Created February 4, 2022 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krymtkts/30af31454d510ce0c34cfeb2fefec072 to your computer and use it in GitHub Desktop.
Save krymtkts/30af31454d510ce0c34cfeb2fefec072 to your computer and use it in GitHub Desktop.
Return to the previous context menu in Windows 11.
$path = 'HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32'
New-Item -Path $path -Force
Split-Path $path -Parent | Get-ChildItem
Set-ItemProperty -Path $path -Name '(Default)' -Value ''
Get-ItemProperty $path
Stop-Process -Name explorer -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment