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, restricting the program to important files of the system. Tampering. However, this also brings some problems to our normal use. When we want to delete a file on the system, it always prompts no administrator rights, so it cannot be deleted. Similarly, WIndows7 also has permission issues. When we find that some files can't be modified, we need to get the administrator ownership of this file. After we get it, we can change it if we want to modify it.
How to get ownership of a file or folder:
Method 1: Add a menu to take ownership of the Windows 7 right-click menu: the specific implementation method is not difficult, save the following as text File, then modify the file with a .reg extension, double-click to import the registry.
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: Using professional optimization tools, Set up the right-click menu
There are many optimization tools mentioned here, generally support WindowsVista optimization tools, can be used to optimize WIndows7, such as Vista optimization master (enter download), Vista Explorer (enter download), etc. Optimized software designed specifically for Windows 7 can 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.
Users usually encounter some problems in the operating system. Many problems have e
Win7 upgrade Win10 system after each boot to choose & ldquo; Windwos 10 & rdquo; how to solve before
When installing software on Windows, a corresponding shortcut icon is usually creat
A lot of times, we will always meet, obviously IE browser has set up the home page, but always do no
Win7 upgrade 0 × 80070002 error how to do
How does Win7 prohibit users from opening U disk
Easily pull out the Windows 7 search box in two easy steps
How to optimize the Win7 registry? Win7 optimization registry method
Win7 system repair disc production method (a)
Win7 system how prohibit the use of U disk?
Can I use a computer when thunder?
How to use the win7 system registry
Win7 right-click menu option "New BMP Image" how to retrieve
Win7 system how to retrieve the compatibility mode
How does Win7 pop up the Windows Update prompt when it is turned off?
Win10 latest 9860 version 8 big update! Teach you how to upgrade Win10 preview version 9860
The perfect solution for uninstalling Win8 in dual systems
Win10 preview version 9879 can not be automatically updated how to do
How to shut down Windows 8 Consumer Preview
Let your system speed ratio be faster than
How to reset security policy and group policy in Win10 preview 14959?
How to enable or disable IE11 protection mode in Win8.1
How to modify the app icon icon under Ubuntu Gnome
Win7/Win8/win8.1 After upgrading Win10, the system has no sound solution.