Right-add to run as Administrator

Source: Internet
Author: User
Keywords Computer use skills right key administrator identity
Tags button click computer copy desktop document editor file

Right-click on any file, not every menu has a child running as an administrator.

You can set this: Use the right mouse button click on the desktop space, in the pop-up menu to select the new → text document.

Copy the following command, and then paste it in the open Notepad.

Windows Registry Editor Version 5.00

[hkey_classes_root\*\shell\runas]@= "admin gets Ownership" "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]@= "admin gets Ownership" "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]@= "admin gets 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 "

Then click the file on the toolbar → Save As.

In the Pop-up settings box, enter the filename (admin) and extension (reg) → save.

Then double-click the new Administrator. reg file to register → yes.

Registration success → OK.

Then use the right click on the file, there is an administrator to run the child, the use of more convenient.

By default, only the partial right-click menu has an administrator's menu, so that all the right-click menus will have a submenu of the administrator.

Related Article

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.