Starting from VISTA, Microsoft has significantly improved the security of the operating system, so that the files (folders) that we can open or delete under XP can not be performed under WIN7. operating. Even if it is under the Administrator super administrator account, it is impossible to operate. Prompt "You need permission from TrustedInstaller to make changes to this folder", or the prompt location is unavailable, and access is denied.
Especially to clean up the system garbage, no matter what tools are used, you can't clean up the files in the protected folder. For the convenience of operation, here is a registry file. After importing the registry, you only need to The file (folder) of the operation is right clicked —— the administrator takes ownership so that you can open or delete it.
It is important to note that if you are not very proficient in the system structure, please do not delete the files that are useful to the system! ! !
The contents of the registry are as follows:
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" & icacls "%1" /grant administrators: F" "IsolatedCommand"="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administrators:F"
[HKEY_CLASSES_ROOTexefileshellrunas2] @="Manage Ownership " "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellrunas2command] @="cmd.exe /c takeown /f "%1" & icacls "%1" & Icacls "%1" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f "%1" & icacls "%1" /grant administra Tors:F"
[HKEY_CLASSES_ROOTDirectoryshellrunas] @="Administrator Ownership" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellrunascommand] @="cmd.exe /c Takeown /f "%1" /r /dy & icacls "%1" & icacls "%1" /grant administrators:F /t" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /dy & icacls "%1" /grant administrators:F /t"
It can also be used in Windows 7, but it can't be used under Win7SP1 system platform. Here is a registry for Win7SP1 platform:
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\\ Runas] @="Administrator Ownership" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\\Directory\\shell\
unas\\command] @="cmd.exe /c takeown /f \\"%1\\" /r /dy && icacls \\"%1\\" /grant administrators:F /t" &q Uot;IsolatedCommand"="cmd.exe /c takeown /f \\"%1\\" /r /dy && icacls \\"%1\\" /grant administrators:F /t"
1. First, we must connect the projectors video input interface to the notebooks video output interfa
Different computers have different identifications of printer categories. In many c
To encounter such a problem, first enter the C:Windowsinf directory and find bth.inf. If you dont
Win7 shortcut key can not open the resource manager how to do [map]
Can such a computer play killer 5? I am planning to buy.
Win 7 system software garbled how to do
Win7 system to play League of Legends often automatically shut down the solution
Detailed description of the Win 7 system backup operation
How to use the u disk to install isowin7 original system
Win7 system can not find the solution of the image preview function
Win7 computer blue screen error code for BlueScreen how to do
Win7 system boot display Cmos checkup error how
The Win7 system completely deletes the printer method
Win10 RS1 preview version of the Edge browser extension official website exposure
WIN XP "delayed write failure" error
Experts share the scheme of automatic backup oracle database
Win8.1 system can not run Java program solution
Windows Server 2012 VDI Standard Deployment Create Virtual Machine Collection
Windows XP can't upgrade Windows 10 solution
Top Ten Strategies for Windows Vista Service Security Enhancement