Deleting folders give access denied error message on Windows 7, although I am administrator

5

1

I have an external hard drive that was used as a Windows partition before, but now I want to use it for storage instead. I have added it to my Windows 7 machine, but I am not allowed to write or delete serveral of the files and folders on the disk. I get the error message access is denied, even though I am administrator. I have tried to log in to the Administrator account with Net user administrator /active:yes, changed ownership and disabled UAC, but nothing helps. I still get access is denied and can not delete anything.

user1049697

Posted 2012-06-23T16:04:54.357

Reputation: 601

Answers

2

You can use unlocker to delete the windows directory. Just install it and it will appear int the right click context menu.

enter image description here

enter image description here

You can also use boot delete which has the ability to delete the files at the boot time.

avirk

Posted 2012-06-23T16:04:54.357

Reputation: 15 151

1

I often get access denied errors because the file is in use by a process. I don't know why the error isn't more helpful.

If that's not it, you can try recursively making all the files on the drive writeable with the attrib command:

ATTRIB -R -S C:\ /S /D

(Replace C: with the correct drive, of course)

Tharwen

Posted 2012-06-23T16:04:54.357

Reputation: 301

1

The main reason behind this is that the explorer.exe process locks files that are in use, effectively preventing you from deleting them. Usually, these files should not be touched, but sometimes, situations arise when you really need to erase some troublesome ones.

Fortunately, there are a few easy solutions to delete those files.

Solution #1: Kill explorer.exe
Solution #2: Use The Windows Recovery Console
Solution #3: Use unlocker

More details and reference:

http://www.techproceed.com/2014/05/how-to-delete-undeletable-or-locked-file.html

Snehal Masne

Posted 2012-06-23T16:04:54.357

Reputation: 176

Killing explorer.exe worked for me. – kjbartel – 2016-02-22T02:32:02.037

0

If you are the Administrator and you can't delete the files on drive, that means the drive is "Read-Only". meaning you don't have write access to the drive. You can verify this by right clicking on the drive and choosing Properties > Security > Advanced > Edit. In that tab you can change the settings and allow "read/write" for the administrator or specific users.

Nima G

Posted 2012-06-23T16:04:54.357

Reputation: 1 538

I get access is denied for a lot of files when I change from read-only. – user1049697 – 2012-06-23T16:23:35.183

0

You don't have access to that files/folder. You should go to Properties -> Security -> Advanced and change to owner to your user (check subfolders if needed)

Remus Rigo

Posted 2012-06-23T16:04:54.357

Reputation: 2 623

I still get access denied, even if I set myself to owner. – user1049697 – 2012-06-23T18:15:56.163

2try to boot from a linux live cd and delete the files – Remus Rigo – 2012-06-24T09:56:44.287