How to obtain super administrator permissions in Win8

Source: Internet
Author: User

How to obtain super administrator permissions in Win8

  1. The method is simple:

    Create a new notepad and Copy the following code to save it. The notepad name does not matter. Remember to change the extension to. reg.

    After the registry is created, double-click the reg file (Registry File) to import it to the Registry. Before the import, you will be prompted to select the file. Click Yes.

    After the import, right-click the folder to which you want to obtain permissions, and right-click the folder to select administrator permissions.

    For the sake of security, the default permissions should be restored after a file is operated. Right-click the file and choose Restore original permissions.

  2. 1. Obtain administrator permissions

    Windows Registry Editor Version 5.00

     

    ; Get the file modification permission

    [HKEY_CLASSES_ROOT \ * \ shell \ runas]

    @ = "Administrator permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 102"

    "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 \ exefile \ shell \ runas2]

    @ = "Administrator permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 102"

    "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]

    @ = "Administrator permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 102"

    "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"

  3. 2. Restore original permissions:

    Windows Registry Editor Version 5.00

    ; Restore original Permissions

    [HKEY_CLASSES_ROOT \ * \ shell \ runas-]

    @ = "Restore original Permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 101"

    "NoWorkingDirectory" = ""

    ; & Takeown/f \ "% 1 \"

    [HKEY_CLASSES_ROOT \ * \ shell \ runas-\ command]

    @ = "Cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/reset & cacls \" % 1 \ "/e/r \ "% USERNAME % \""

    "IsolatedCommand" = "cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/reset & cacls \" % 1 \ "/e/ r \ "% USERNAME % \""

    [HKEY_CLASSES_ROOT \ exefile \ shell \ runas2-]

    @ = "Restore original Permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 101"

    "NoWorkingDirectory" = ""

    [HKEY_CLASSES_ROOT \ exefile \ shell \ runas2-\ command]

    @ = "Cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/reset & cacls \" % 1 \ "/e/r \ "% USERNAME % \""

    "IsolatedCommand" = "cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/reset & cacls \" % 1 \ "/e/ r \ "% USERNAME % \""

    [HKEY_CLASSES_ROOT \ Directory \ shell \ runas-]

    @ = "Restore original Permissions"

    "Icon" = "C: \ Windows \ System32 \ imageres. dll, 101"

    "NoWorkingDirectory" = ""

    [HKEY_CLASSES_ROOT \ Directory \ shell \ runas-\ command]

    @ = "Cmd.exe/c takeown/f \" % 1 \ "/r/d y & icacls \" % 1 \ "/reset & cacls \" % 1 \" /e/r \ "% USERNAME % \""

    "IsolatedCommand" = "cmd.exe/c takeown/f \" % 1 \ "/r/d y & icacls \" % 1 \ "/reset & cacls \" % 1 \ "/e/r \" % USERNAME % \""

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.