How to delete a folder which ask “You need permission to perform this action. You require permission from…” even you are administrator of that folder.

Problem:

When you try to delete some folders from C: drive of your system, then it might not allow you to delete it with the following error:

Admin_Rights

 

Even you are an admin of your system or even you manage to take the ownership of the folder in your name, then also you might not able to delete the folder.

So, I would like to provide you a quick solution. Very easy !!!!

 

Solution:

1. Make a folder and create a .txt file inside it and named it . (Note: You can create a folder anywhere on your system)

2. Inside that text file, type the following line:

SET DIRECTORY_NAME="C:\Your Directory which you want to delete"
TAKEOWN /f %DIRECTORY_NAME% /r /d y
ICACLS %DIRECTORY_NAME% /grant administrators:F /t
PAUSE

3. Save it as batch file as New_Textfile.bat

4. Then, run the batch file as administrator.

After the command works fine, you can delete the folder by just pressing DELETE button. Now it will work like a charm  🙂

Feel free to contact me if you need any help.

Cheers,

Udhyan.

 

Advertisement

6 thoughts on “How to delete a folder which ask “You need permission to perform this action. You require permission from…” even you are administrator of that folder.

  1. Wouldn’t it be easier to take ownership on the folder by going to the Advanced security settings of the folder? Should be done in few clicks 🙂

    1. Even after you take the ownership of folder from Advanced Setting, it will not allow you to delete sometimes. I face the problem, so I wrote this blog 🙂 Promise Dada.
      For example:
      One IT employee create a folder and he took the ownership of the folder. He left the company and you have to now handle that folder. You want to delete it. Then, you will take the ownership by going to the Advanced security settings of folder. Then, a error might get pop, please contact XXX to delete the folder. On this case, you can apply this idea 🙂
      Cheers,
      Udhyan.

      1. Haven’t tried on desktop version of windows but while troubleshooting this issue on Wndows Server 2008 and VNX file servers it always works for me at least. I will have to try on desktop versions though.

      2. It happens in my Windows Server 2008 R2 and it happens even after I took the owernship. It normally appears when you haven’t inheritance your file folder. Atleast it happens for me 😀

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s