How to open a permission file after obtaining administrator permissions in Win7

Source: Internet
Author: User

Win7 has the administrator privilege. When you use Win7 to open a permission file, you are often prompted that you do not have the administrator privilege when deleting files or folders. How can we set this to obtain the administrator privilege of Win7. This article describes several methods to obtain the administrator privileges of Windows 7. When you delete a file, the system prompts that you do not have the administrator privilege. STEP/method when using Win7, you will often encounter File Deletion
Right-click the folder for which you want to change the permission, select Properties> Security> advanced> owner> edit, change the current owner to the logged-on user, and click OK. Return to the folder Properties window at www.2cto.com. In the security options window, click the edit button. In the displayed dialog box, select the user you are logged on to and select allow for all permissions at the bottom, finally, confirm the Administrator permission for the folder to be changed. You only need to add a few items to the Registry. When you right-click a folder, the option opened with the Administrator permission appears. First, right-click the computer in the Start menu and choose manage from the shortcut menu to go to the local user and group. Double-click Adminstrator. In the Properties dialog box, disable the account and click OK. Create a new notebook and copy the following content.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT \ * \ shell \ runas] @ = "Administrator 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] @ =" Administrator ownership "www.2cto.com" 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 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 "select file -- Save As, save the file. reg file. Double-click the saved reg file and import the registry information. When you right-click a folder, the administrator privilege is displayed. Author IMGTN

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.