Add "Get Administrator Permissions" to win7 right click

  
        In win7, it is possible that some file directories require administrator rights to be deleted or changed, so administrator rights are required. However, in the newly installed system, there is no menu item in the right button to get the administrator permission, so you need to add it manually: Create a file with the administrator permission .reg” by creating a new file, open it with the editor and copy it. Go to the following, save and double-click to add to the registry: Xml code Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\\*\\shell\ unas] @="Get Administrator Permissions" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\\*\\shell\ unas\\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\ unas2] @=" ;Get administrator privileges" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\\exefile\\shell\ unas2\\command] @="cmd.exe /c takeown /f \\"%1\\" & icacls \\"%1\\&q Uot; /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \\"%1\\" & icacls \\"%1\\" /grant administrators:F" [HKEY_CLASSES_ROOT \\Directory\\shell\ unas] @="Get Administrator Permissions" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\\Directory\\shell\ unas\\command] @="cmd.exe /c takeown /f \\ "%1\\" /r /dy & icacls \\"%1\\" /grant administrators:F /t" "IsolatedCommand"="cmd.exe /c takeown /f \\"%1 \\" /r /dy & icacls \\"%1\\" /grant administrators:F /t"
Copyright © Windows knowledge All Rights Reserved