(FAQ) win7 get administrator privileges

  
        

At present, more and more users of the company use Win7
, because the rights management and framework design are somewhat different from the previous Vista and XP designs. Many users use software or delete files. In the case of insufficient permissions, the principle is very simple. You need to upgrade the permissions of your account to the superuser administrator, you can kick these annoying tips, but some users mentioned why they are already administrators. However, sometimes deleting files will still have insufficient permissions? In fact, Win7 has such a protective measure function, there is a hidden function is to upgrade your current administrator user again, of course, if you want to set it is more cumbersome. So I provide the following method to modify the registry for everyone, just open a TXT document, then copy and paste the following content, save as a REG format file, when these operations, you click on any When a file is right-clicked, is there a menu for "Get Administrator Ownership"? This will make your operation more convenient~~ Hehe!

===================================================== ==== I am a dividing line ============================================ P>Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\\*\\shell\ unas]
@="Administrator Takes Ownership"
"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]
@="Administrator takes ownership"
" NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\\exefile\\shell\ unas2\\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\ unas ]
@="Administrator takes 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"

Copyright © Windows knowledge All Rights Reserved