How to get the administrator rights of Win7 files

  
Starting from the Vista system, in order to provide system security, Microsoft began to emphasize the ownership of Windows files, as well as the user rights when the program is running, and limit the tampering of important files of the system. However, this also brings some problems to our usual use, and WIndows7 also has permission issues. When we find that some files cannot be modified, we need to obtain the administrator ownership of the file. Once we have it, we can modify it as we like.
The trick we are going to introduce is how to take ownership of a file or folder. :
Method 1: Add the ownership menu for the Windows 7 right-click menu: the specific implementation method is not difficult, save the following content as a text file, and then modify the file extension to .reg, double-click to import the registry. .

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 administrators:F"
[HKEY_CLASSES_ROOTDirectoryshellrunas]
@= "Administrator Takes 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"
Method 2: Use the professional optimization tool to set the right-click menu.
There are many optimization tools mentioned here. Generally, WindowsVista optimization tools can be used to optimize WIndows7, such as Vista optimization master (enter download), Vista manager (enter download), etc., of course, those specially designed for Windows7. Optimization software can also achieve the same effect, such as Windows7 optimization master (enter download), Windows7 master and so on. In the system settings of these tools, the right-click settings have the function of adding administrator rights. I will not explain them in detail here. You can find them yourself.


Copyright © Windows knowledge All Rights Reserved