I didn't want to write these things, but I often encountered them. Record them!
One-click access to the highest permissions of the Administrator
Create a TXT file and change its suffix to. Reg format. The content is as follows:
Windows Registry Editor Version 5.00 [hkey_classes_root * shellrunas] @ = "get the highest administrative permission" "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] @ =" get the highest administrative permission "" noworkingdirectory "=" "[privileges] @ =" 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] @ =" get the highest administrative permission "" noworkingdirectory "=" "[privileges] @ =" 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"
Please restart... OK