Get the Win7 administrator privilege

  
by manually importing the registry. Get the Win7 admin rights by manually importing the registry. There is a phenomenon called 咱 own computer, and 咱 is also a super administrator. But Win7 people don't admit it, especially when you want to start with the files under system, Win is blindly saying what must be admin rights to operate. I don't have permission.
Of course, people may also have security considerations, although this mechanism is not very well understood by everyone. Fortunately, people have not taken you to the road, so I have to write other ways to leave, for example, we can manually import the registry to get your own administrator privileges.
Next four steps Zou:
1. Just build one. Reg is the file with the suffix.
2. Enclose the following code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/*/shell/runas]
@="Get Administrator Permission"
" 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 Administrator Permissions"
"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 admin rights &quo t;
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT/Directory/shell/runas/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"
3. Then double-click to execute, the mail can be seen to get administrator privileges.

Copyright © Windows knowledge All Rights Reserved