Command Prompt w/ Admin Rights from File Explorer


TO INSTALL

  1. Create a file named: admin-terminal.reg
  2. open the file with notepad and add the following:

Windows Registry Editor Version 5.00

; Add “Open Terminal as Administrator” to standard right-click context menu
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@=”Open Terminal as Administrator”
“HasLUAShield”=””

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@=”powershell.exe -windowstyle hidden -Command \”Start-Process wt.exe -ArgumentList ‘-d’, ‘\”%V\”‘ -Verb RunAs\””

3. Save and double click – now when you right click in Windows explorer, you can choose “More Options” and “Open Terminal in Administrator”

To UNINSTALL

  1. Create a file named: admin-terminal-remove.reg
  2. open the file with notepad and add the following:

Windows Registry Editor Version 5.00

; Remove “Open Terminal as Administrator” from right-click context menu
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]

3. Save and doubnle click – it will be removed from context menu

Leave a Reply

Your email address will not be published. Required fields are marked *