Workaround One:
1. Right-click the folder where you want to change permissions, select Properties-Security-advanced-owner-change, advanced-immediately find, add "Everyone" and confirm.
2, edit the "Everyone" permission for "Full Control" and confirm.
Workaround Two:
1, for once and for all. We recommend that you use the right button extended menu method. Specific actions:
Create a new Notepad, copy the following content, the effect is as shown.
Windows Registry Editor Version 5.00
[hkey_classes_root*shellrunas]@= "admin gets 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]@= "admin 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]@= "admin gets Ownership" "noworkingdirectory" = ""
[hkey_classes_rootdirectoryshellrunascommand]@= ' cmd.exe/c takeown/f '%1 '/r/d y && icacls '%1 '/grant Ators:f/T "" Isolatedcommand = "cmd.exe/c takeown/f"%1 "/r/d y && icacls"%1 "/grant administrators:f/T"
2, select File-Save As, save the file as "Admin get ownership. reg" file. Double-click the saved reg file, import the registry information, you can right-click the folder when the option to get administrator rights;
3, now you can safely delete the file (folder).
Follow the above methods to obtain the highest administrator privileges, so that you can successfully delete the file, a simple and practical two methods.