The skill of obtaining administrator ownership under win7

  

The skill introduced today is how to obtain the ownership of a certain file or folder. As everyone knows, the ownership problem is already emphasized in the beginning of the windows system, including The user rights when the program is running, restricting the program's tampering with important files of the system, etc. This brings some problems to the daily system. In any case, when we find that some files cannot be modified, we still need to use them. Ownership issues, you need to obtain the ownership of the administrator of this file to have the right to modify a file, today talk about the permissions of win7 ownership.

Method 1: Add a menu to take ownership of the Windows7 right-click menu: The specific implementation method is not difficult, save the following content as a text file, and then modify the file with a .reg extension, double-click to import the registry.

Friendly reminder: If importing the registry does not work, please delete the space in front of each line in the field below.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\\*\\shell\ unas]

@="Administrator 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 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 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"

Method 2: Use the professional optimization tool to set the context menu.

There are many optimization tools mentioned here, generally supporting WindowsVista optimization tools, can be used to optimize WIndows7, such as Vista optimization master (enter download), Vista Explorer (enter download), etc., of course, those specially designed The optimization software for Windows 7 can also achieve the same effect, such as Windows 7 optimization master (enter download), Windows 7 Explorer 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.

The above two methods can help you get the ownership of win7 administrators. Friends who need this can come to this website to study the tutorial well. If you have better methods, please feel free to discuss and discuss. .

Copyright © Windows knowledge All Rights Reserved