How to get super administrator rights in Win8 system

  
Using Win8 to find the system folder is often prompted: unable to access … …, denied access. It is because there is no super administrator authority. It is very easy to obtain Win8 super administrator privileges. Importing a registry file can be realized, and the operation is simple.
Whether you use Win8 or Win7, when you open some folders of the C drive, you will often encounter inaccessible situations, so that you can't delete the files that have been confirmed to be useless. Win7 is very easy to do, all kinds of tools can be added in the right-click menu to get the admin rights button. Now I mainly introduce how to add the option of obtaining administrator rights for the right mouse button menu under Win8.
Create a new notebook and copy the following code into it. The name of the notebook does not matter. Remember to change the extension to .reg.
After the establishment, double-click the reg file (registry file) to import the registry, there will be a prompt for you to choose before importing, the point is OK.
After importing, right click on the folder you want to get permission to, select the administrator permission in the right mouse button menu.
For security reasons, after a file operation is completed, it should be restored to the default permissions. In this case, select Restore original permissions in the right-click menu.
Get administrator privileges:
Windows Registry Editor Version 5.00
;Get file modification permission
[HKEY_CLASSES_ROOT*shellrunas]
@="Administrative permissions"
"Icon" ;="C:WindowsSystem32imageres.dll,102"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT*shellrunascommand]
@="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_ROOTexefileshellrunas2]
@="Administrative Rights"
"Icon"="C:WindowsSystem32imageres.dll,102"
"NoWorkingDirectory" =""
[HKEY_CLASSES_ROOTexefileshellrunas2command]
@="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_ROOTDirectoryshellrunas]
@="Administrative Rights"
"Icon"="C:WindowsSystem32imageres.dll,102"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@="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"
Revert to original permissions:
Windows Registry Editor Version 5.00
;Restore original permissions
[HKEY_CLASSES_ROOT*shellrunas-]
@="Restore original permissions"
"Icon"="C:WindowsSystem32imageres.dll,101"
"NoWorkingDirectory"=""
; && takeown /f "%1"
[HKEY_CLASSES_ROOT*shellrunas -command]
@="cmd.exe /c takeown /f "%1" && icacls "%1&quo t; /reset && cacls "%1" /e /r "%%USERNAME%%""
"IsolatedCommand"="cmd.exe /c takeown /f "% 1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""
[HKEY_CLASSES_ROOTexefileshellrunas2-]
@ ="Restore original permissions"
"Icon"="C:WindowsSystem32imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellrunas2-command]
@ ="cmd.exe /c takeown /f "%1" && icacls "%1" /reset &&cacls "%1" /e /r "%%USERNAME%%" ;"
"IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""
[HKEY_CLASSES_ROOTDirectoryshellrunas-]
@="Restore original permissions"
"Icon"="C:WindowsSystem32imageres.dll,101"
" NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellrunas-command]
@="cmd.exe /c takeown /f "%1" /r /dy && icacls "%1" /Reset && cacls "%1" /e /r "%%USERNAME%%""
"IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /dy && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""
How to delete the two added right keys Menu, also ask God to be a gadget to upload, save one by one to the registry to delete.

Copyright © Windows knowledge All Rights Reserved