Operation Steps:
1, open Notepad, and then copy the following code into Notepad:
First, you copy the following code and paste it into Notepad, and click the Notepad menu--file--Save As--select "All Files" and name it "admin get ownership. reg";
Windows Registry Editor Version 5.00
[Hkey_classes_root*shellrunas]
@= "Administrator 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]
@= "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]
@= "Administrator gets ownership"
"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"
2, and then save as an administrator to obtain ownership. REG (Remember to select "All Files" first when saving);
3. Finally, double-click the created registry file to import the registry.
As long as the above code is saved in Notepad, then the reg format, injected into the registry to modify registry keys can be in the Win8.1 right-click menu to see the administrator to take ownership of the option.