Skip to content

Instantly share code, notes, and snippets.

@pa-0
Forked from danielwgit/sublime_elevated.reg
Created April 23, 2025 21:50
Show Gist options
  • Save pa-0/3308de6a6b36f3c82bddea1243f0ba83 to your computer and use it in GitHub Desktop.
Save pa-0/3308de6a6b36f3c82bddea1243f0ba83 to your computer and use it in GitHub Desktop.
Context menu for Sublime UAC-elevated mode
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Elevated\command]
@="\"C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\Powershell.exe\" -NoProfile -WindowStyle Hidden -Command \"Start-Process 'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -ArgumentList '\"\"%1\"\"' -Verb RunAs\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment