Create a new. txt text, copy and paste the following code into a file, save as or rename a. reg file, and double-click the file or right key to merge the file.
The code is as follows:
Windows Registry Editor Version 5.00
[Hkey_classes_root*shellrunas]
@= "Access to Super Administrator privileges"
"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]
@= "Access to Super Administrator privileges"
"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]
@= "Access to Super Administrator privileges"
"Noworkingdirectory" = ""
[Hkey_classes_rootdirectoryshellrunascommand]
@= "cmd.exe/c takeown/f"%1 "/r/d y && icacls"%1 "/grant administrators:f/T"
"Isolatedcommand" = "cmd.exe/c takeown/f"%1 "/r/d y && icacls"%1 "/grant administrators:f/T" Windows Registry E Ditor Version 5.00
[Hkey_classes_root*shellrunas]
@= "Access to Super Administrator privileges"
"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 gets 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]
@= "Access to Super Administrator privileges"
"Noworkingdirectory" = ""
[Hkey_classes_rootdirectoryshellrunascommand]
@= "cmd.exe/c takeown/f"%1 "/r/d y && icacls"%1 "/grant administrators:f/T"
"Isolatedcommand" = "cmd.exe/c takeown/f"%1 "/r/d y && icacls"%1 "/grant administrators:f/T"
In a file or folder that you want to get all permissions on, right-click, and a key to get Super Administrator privileges, you can quickly get the highest privileges in the normal administrator account.
After you get the permissions, run the program just as you would in the Super administrator account.
Another situation is that because a program is manipulating the file causing the deletion, enabling Task Manager to end all processes in the program and then try to delete again.
Enable Administrator account: Run Gpedit.msc--Computer Configuration--Windows Settings--security settings--local policy--security options--account: Admin account status--double-click Open Properties--enable--OK.
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join