Win7 system to obtain system permissions method

  
method is as follows:
1, right click on the win7 system computer desktop blank space, create a new Notepad document (txt file), copy the following content:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\\*\\shell\ unas]
@="Administrator Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\\*\\shell\ unas\\command]< Br> @="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]
@="Administrator Takes Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\\exefile\\shell\ unas2\\command]
@="cmd.exe /c takeow n /f \\"%1\\" && icacls \\"%1\\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \\" ;%1\\" && icacls \\"%1\\" /grant administrators:F"
[HKEY_CLASSES_ROOT\\Directory\\shell\ unas]
@="Administrator Ownership"
"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"
2. Save the Notepad document and change the suffix .txt to .reg;
3 Double-click this .reg to write information to the registry;
4, right click on the file, this time an additional line "administrators take ownership", click to get the file All permissions are gone.

Copyright © Windows knowledge All Rights Reserved