Registry: Add [Run as Administrator] to Right-Click Menu in Windows 10


By Default, the [Run as Administrator] item is missing from the right-click menu in Windows 10, but the following trick can bring this back.

Simply save the below in notepad as the *.reg file and double click and click YES to update the registry.

admin-cmd-folder-prompt Registry: Add [Run as Administrator] to Right-Click Menu in Windows 10 tricks windows

Click OK to enter information to registry

Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\*\shell\runas]
 @="RunAsAdministrator"
 "NoWorkingDirectory"="" 
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" 
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" 
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="RunAsAdministrator" 
"NoWorkingDirectory"="" 
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" 
[HKEY_CLASSES_ROOT\Directory\shell\runas] 
@="RunAsAdministrator" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
241 words
Last Post: Free Harddrive Space After Windows 10 Upgrade
Next Post: Visual Studio 2013 Crashes Because of Display Adapter Driver

The Permanent URL is: Registry: Add [Run as Administrator] to Right-Click Menu in Windows 10

Leave a Reply