How to delete the folder that requires administrator rights in Win7

  

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 we find that the prompt requires administrator rights. Then, how can Win7 delete the folder that needs administrator rights? If you don't know how to deal with it, let's take a look at the tutorial of Xiaobian!

Method 1: Make an administrator authorized file, put this File Join Registry

1. Start - Run (Enter Notepad) - OK or Enter, open Notepad (out from: Start - All Programs - Accessories - Notepad).

2. Copy the following files in the open notepad:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT*shellrunas]

@=“ Admin Authorization & rdquo;

“NoWorkingDirectory =“”

[HKEY_CLASSES_ROOT*shellrunascommand]

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

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

administrators:F”

[HKEY_CLASSES_ROOTexefileshellrunas2]

@=“Administrator Authorization&<<>

<quo; 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]

@=“Management Authorization & rdquo;

“NoWorkingDirectory =“”

[HKEY_CLASSES_ROOTDirectoryshellrunascommand]

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

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

administrators:F /t”

3, click on the top left corner of the notebook “ file ”- save as, In the Save As window: File Name (N), enter: Admin Authorization.reg, then click: Save.

4, then there will be a desktop: the administrator authorized .reg registry file.

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

6. At the point where the point is popped up in the window: OK, we right click on a folder and you will see the menu in the right-click menu: Administrator authorization.

7. If we want to delete the folder, right click on the folder - run the administrator authorization, then delete the folder and you can delete it smoothly.

Method 2: Modify the folder security properties

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

2, we are in the folder properties window that opens, click: Security - Edit.

3, in the "Group or User Name (G)" column, we click: Add.

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

5, in the "Administrators permissions (P) & rdquo; column "Allow" under the mouth of all the tick (also can be customized according to their needs), click: Apply - OK.

6. In the pop-up "Windows Security" window, we click "Yes" to return to the original window and click OK.

7. If we want to delete the folder, right click on the folder - run as administrator, then delete the folder and delete it smoothly.

Copyright © Windows knowledge All Rights Reserved