Add menu items with Full Control permission under Windows to the right mouse button

Source: Internet
Author: User

  This period of time the computer C partition more than a lot of useless files, and not in the same directory, search out to delete the prompt without administrator rights, need to modify in the right-click Properties, very troublesome, and then query the discovery can be in the file right-click menu to add a Get permission menu items, so it is easy to use.

method is to modify the registry, in order to make it easier to create a new text document, and then rename the file name suffix. txt to the. Reg,reg Action Registry file format, as if:

  For example, add the registry. Reg in the code below:

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"

Then save the above content, double-click Add Registry. Reg, then click the "Continue" button to add the success, at this time the file's right-click menu will appear "get permission", such as:

If you do not want to use it later, you can enter the following code in the release. Reg:

Windows Registry Editor Version 5.00

[-hkey_classes_root\*\shell\runas]

[-hkey_classes_root\directory\shell\runas]

You can import it after saving it.

Add menu items with Full Control permission under Windows to the right mouse button

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.