Win7 system to get system permissions method

  
The method is as follows:
1. Right click on the blank space of the win7 system computer desktop, create a new Notepad document (txt file), copy the following content:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellrunas]
@="Administrator Ownership"
"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]
@="Administrator Ownership"
"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 admin Istrators:F"
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@="Administrator Ownership"
"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"
2, save the notebook document, change the suffix name .txt to .reg; Br>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 all permissions on the file It is.

Copyright © Windows knowledge All Rights Reserved