Set up a TXT file, put the following script into the inside, and then change the suffix to reg format, double-click Add to the registry on it, win10_1703 version of Pro-Test available ....
Windows Registry Editor Version 5.00[hkey_classes_root\*\shell\runas] @= "Get administrator Rights" "noworkingdirectory" = "" [Hkey_ Classes_root\*\shell\runas\command] @= "cmd.exe/c takeown/f \"%1\ "&& icacls \"%1\ "/grant administrators:f" is Olatedcommand "=" cmd.exe/c takeown/f \ "%1\" && icacls \ "%1\"/grant administrators:f "[hkey_classes_root\ EXEFILE\SHELL\RUNAS2] @= "Get administrator Rights" "noworkingdirectory" = "" [Hkey_classes_root\exefile\shell\runas2\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] @= "Get Administrator Privileges" Noworkingdirectory "=" "[Hkey_classes_root\directory\shell\runas\command] @=" cmd.exe/c takeown/f \ "%1\"/r/d y && Amp ICACLS \ "%1\"/grant administrators:f/T "" isolatedcommand "=" cmd.exe/c takeown/f \ "%1\"/r/d y && icacls \ "%1\" /grant administrators:f/T "
Win10 Get Super Administrator rights script implementation