Windows Add and remove right-click Administrator permissions

Source: Internet
Author: User

Pro-Test available

Add right-click Administrator permissions

Create a new text document and paste the following code

1Windows Registry Editor Version5.002[Hkey_classes_root\*\shell\RunAs]3@="administrator takes ownership "4 "noworkingdirectory "=" "5[Hkey_classes_root\*\shell\runas\Command]6@="cmd.exe/c takeown/f \ "%1\" && icacls \ "%1\"/grant administrators:f "7 "Isolatedcommand "=" cmd.exe/c takeown/f \ "%1\" && icacls \ "%1\" /grant administrators:f "8[Hkey_classes_root\exefile\shell\RUNAS2]9@="administrator takes ownership "Ten "noworkingdirectory "=" " One[Hkey_classes_root\exefile\shell\runas2\Command] A@="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] the@="administrator takes ownership " - "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 "

The file suffix is changed to. Reg, and the Save and run is added successfully.

Remove right-click Administrator privileges

Create a new text document and paste the following code

5.00 [-hkey_classes_root\*\shell\runas][-hkey_classes_root\exefile\shell\runas2][-HKEY_ Classes_root\directory\shell\runas]

The file suffix is changed to. Reg, and the Save and run is canceled successfully.

Windows Add and remove right-click Administrator permissions

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.