How to obtain administrator permissions for Win7 files

Source: Internet
Author: User

From the Vista system, Microsoft to provide system security, began to emphasize the ownership of Windows files, as well as program Run-time user rights, restricting the program to the system important files tampering. However, this also gives us the usual use of some problems, the same WIndows7 also have permission problems. When we find that some files cannot be modified, we need to get the admin ownership of the file, and then we can modify it as we wish.

The trick we're going to introduce is how to get ownership of a file or folder. :

  method One: add a menu of ownership to the right-click menu for Windows7: The method is not difficult to implement, save the following as a text file, and then modify the file with the extension. reg, double-click the Import registry.

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"

  method Two: Use the Specialized optimization tool, set up the right button menu.

There are many kinds of optimization tools here, the general Support WindowsVista optimization tools, can be used to optimize the WIndows7, such as Vista optimization master (into the download), Vista Explorer (into the download), Of course, those specially designed to Windows7 optimization software can also achieve the same effect, such as Windows7 optimization master (into the download), Windows7 Explorer and so on. The system settings in these tools, the right key settings have to add the ability to get administrator privileges, here is not detailed, you can find their own.

  

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.