Add an option to "Get super administrator privileges" in the Windows 10 right-click menu

  When operating some Windows system files/folders, it will prompt " File access is denied, you need permission to perform this operation/You need to provide administrator permissions to move this file ",

  This is because we do not have administrator rights to the file/folder (similar to the root of Android and the jailbreak of Apple's iOS). Although it can be achieved through advanced security settings, it is too cumbersome.

  So the easiest way is to have a " Get super administrator privilege " option in the right-click menu that pops up when you click on a file or folder, so that you can easily get the ownership of the file/folder.

Here's how to add the " Get Super Administrator Privileges " option to the   Win10 right-click menu :

1. Obtain super administrator privileges

  Create a new text file and copy the following commands into the text:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@ ="Get super administrator privileges"
"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]
@ ="Get super administrator privileges"
"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]
@ ="Get super administrator privileges"
"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"

  Then name the text document " Win10 get super administrator rights.reg ", and then double-click to import the registry, so that you can get Win10 super administrator rights.

  Right-click on any file or folder to see the " Get Super Admin Access " option. As shown below:

2. Cancel the acquired Windows 10 super administrator privileges

  This refers to canceling the " Get super administrator privileges " option in the right-click menu . The method is to create a new text document and copy the following commands into the text:

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[-HKEY_CLASSES_ROOT\dllfile\shell]
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[-HKEY_CLASSES_ROOT\exefile\shell\runas]
[HKEY_CLASSES_ROOT\exefile\shell\runas]
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"

  Then name the text document " Win10 cancels obtaining super administrator privileges.reg ", double-click to import the registry, which cancels the super administrator privileges.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324675999&siteId=291194637