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