How does Win7 delete a folder that requires administrator rights?

  

The computer of Win7 system has been used for a long time, and some garbage folders will be generated. Sometimes we want to delete these garbage folders, but find that the prompt requires administrator rights, then how can Win7 delete the administrator rights? What about the folder? Do not know how to deal with friends, take a look at the tutorial small series now!

Method One: Making a document authorized by the administrator, put the file on the registry

1, Start - Run (enter notepad) - OK or press Enter to open Notepad (Out can be from: Start - All Programs - Accessories - Notepad).

2, copy the following files in the open Notepad:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT \\ * \\ shell \\ runas]

@ = & ldquo; administrator authorization & rdquo;

& ldquo; NoWorkingDirectory & rdquo; = & ldquo; & rdquo;

[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]

@ = & ldquo; administrator authorization & rdquo;

& ldquo; NoWorkingDirectory & rdquo; = & ldquo; & rdquo;

[HKEY_CLASSES_ROOT \\ exefile \\ shell \ unas2\\command]

@=“cmd.exe /c takeown /f \\”%1\\“ && icacls \\”%1\\“ /grant administrators:F”

“IsolatedCommand”=“cmd.exe /c takeown /f \\”%1\\“ && icacls \\”%1\\“ /grant

administrators : F & rdquo;

[HKEY_CLASSES_ROOT \\ Directory \\ shell \\ runas]

@ = & ldquo; administrator authorization & rdquo;

& ldquo; NoWorkingDirectory & rdquo; = & ldquo; & rdquo;

[HKEY_CLASSES_ROOT\\Directory\\shell\ unas\\command]

@=“cmd.exe /c takeown /f \\”%1\\“ /r /dy && icacls \\”%1\\“ /grant administrators:F /t”

“IsolatedCommand”=“cmd.exe /c takeown /f \\”%1\\“ /r /dy & ; & icacls \\ & rdquo;% 1 \\ & ldquo; /grant

administrators: F /t & rdquo;

3, point notepad upper left corner of & ldquo; file & rdquo; - Save To enter, in the File Name (N) under the Save As window, enter: Admin Authorization.reg, then click: Save.

4, then there will be a desktop: Administrator authorization .reg registry file.

5, we left double-click: Administrator authorization .reg file, in the pop-up: the Registry Editor window Pts: Yes (Y).

6, the point is after the pop-up window midpoint: OK, we right-click on a folder, you see the context menu are: authorized by the administrator menu.

7, if we want to delete a folder, the folder is right - to run authorized by the administrator, and then delete the folder can successfully deleted.

Method 2: Modify the folder security properties

1. Right-click the folder we want to delete - properties.

2, we open the folder properties window, click on: security - Edit.

3, in & ldquo; user or group name (G) & rdquo; column, we click on: Add.

4, in the pop-up window select the user or group, we enter: Administrators, point to determine, also point back to the original window: OK.

5, in & ldquo; Administrators permissions (P) & rdquo; bar & ldquo; allowed & rdquo; below the mouth of all tick (also according to their need to customize permissions), click: - - - OK .

6, the pop-up & ldquo; Windows Security & rdquo; window, we point & ldquo; & rdquo ;, is back to the original window, points are determined.

7, if we want to delete a folder, the folder is right - to run as an administrator, and then delete the folder can successfully deleted.

How can Win7 delete the folder that requires administrator privileges? Here is the tutorial. In addition to the methods in this article, you can completely delete files through third-party software.

Copyright © Windows knowledge All Rights Reserved