Skip to content

Instantly share code, notes, and snippets.

@alanmburr
Last active February 11, 2025 22:15
Show Gist options
  • Save alanmburr/b77311996d722fa6db916026b0f31cc3 to your computer and use it in GitHub Desktop.
Save alanmburr/b77311996d722fa6db916026b0f31cc3 to your computer and use it in GitHub Desktop.
Restore Windows 10 context menu in Explorer (Run as Admin)
:: from https://www.reddit.com/r/sysadmin/comments/1frq94l/guide_restore_old_rightclick_context_menu_in/?rdt=47578
reg add "HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f
reg add "HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32" /f /ve
taskkill /f /im explorer.exe
start explorer.exe
# <title>Restore Windows 10 context menu on Windows 11</title>
# <h1>Restore Windows 10 context menu on Windows 11</h1>
# <p>adapted from https://www.reddit.com/r/sysadmin/comments/1frq94l/guide_restore_old_rightclick_context_menu_in/?rdt=47578</p>
# <p>served at https://link.alanburr.us.eu.org/r10cm</p>
# <p>run in powershell: <code>irm https://link.alanburr.us.eu.org/r10cm | iex</code></p>
# <p>you may have to restart explorer manually (do NOT use elevated shell): <code>Start-Process explorer</code></p>
$command = @"
reg add `"HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\``{86ca1aa0-34aa-4e8b-a509-50c905bae2a2``}\InprocServer32`" /ve /f
reg add `"HKEY_CURRENT_USER\Software\Classes\CLSID\``{d93ed569-3b3e-4bff-8355-3c44f6a52bb5``}\InprocServer32`" /ve /f
taskkill /f /im explorer.exe
Start-Process explorer.exe
"@
Start-Process powershell -ArgumentList "-Command `"& {$command}`"" -Verb RunAs
Start-Process powershell -ArgumentList "-Command `"& {$command}`""
Start-Process explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment