Get Permissions
Windows Registry Editor Version 5.00
[Hkey_classes_root/*/Shell/RunAs]
@ = "Get permission"
"Noworkingdirectory" = ""
[Hkey_classes_root/*/Shell/RunAs/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 permission"
"Noworkingdirectory" = ""
[Hkey_classes_root/directory/Shell/RunAs/command]
@ = "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"
Open a notepad and save it as a. reg file.
Delete the permission"
Windows Registry Editor Version 5.00
[-Hkey_classes_root/*/Shell/RunAs]
[-Hkey_classes_root/directory/Shell/RunAs]
Save as the. reg file.