An error occurred while applying security information to
While attempting to move files from a hard drive I recovered I kept getting the following error on a specific set of files.
An error occurred while applying security information to
{G:\Folder}
Failed to enumerate objects in the container. Access is denied.
In order to fix it did the following.
-Open a Command Prompt "As Administrator"
-Run the following commands:
takeown /f "G:\folder" /r /d y
icacls "G:\folder" /grant administrators:F /T
An error occurred while applying security information to
{G:\Folder}
Failed to enumerate objects in the container. Access is denied.
In order to fix it did the following.
-Open a Command Prompt "As Administrator"
-Run the following commands:
takeown /f "G:\folder" /r /d y
icacls "G:\folder" /grant administrators:F /T
Your input help me much! Many thanks!
ReplyDeleteI have an external hard drive that was somehow messed with and there are files that cannot be accessed. I'm receiving the same message. How would I fix this issue?
ReplyDeleteThanks for your post! It worked when all other attempts had failed.
ReplyDeleteThanks again.
Bro - you are THE shit. This worked when nothing else would. Thanks a ton
ReplyDeleteNice one Richard! Thanks!
ReplyDeleteThanks for your post! It worked for me !
ReplyDeletenot working ... access denied error message is coming
ReplyDeleteI only get system error when trying those CMD commands.
ReplyDeleteVery very nice solution. CMD command works for me
ReplyDeleteThanks a lot
Bless you.
ReplyDeleteHoly shit you literally just showed me how to fix a problem our "IT" guy has been working on for weeks.....You are the bomb
ReplyDeleteThis solved it for me
ReplyDeleteYou may also try Computer Management/Shared Folders/Open Files and close any affected files. For me this solved the problem.
Proposed as answer by Robert van Jaarsveld Friday, October 31, 2014 12:45 PM
this doesn't work for me, neither commands are being recognised
ReplyDeleteDamn!! It worked.
ReplyDeleteFor the ones saying the command doesn't work, put a space after the folder name, as in:
takeown /f G:\folder /r /d y
one more thing, change "administrators" for your administrator name, like my case, in portuguese, it goes like this:
icacls G:\folder /grant administrador:F /T
Thanks a lot, Richard
Awesome....Richard you simply great. thanks for sharing such wonderful solution. thanks
ReplyDeletethanks!
ReplyDeleteLEGEND
ReplyDeleteThanks a lot.
ReplyDeleteLEGEND !!!
You are a lifesaver! NOTE: I had to put the path in quotes and add a space between the path and the /r.
ReplyDeleteThis is the single most useful approach to this problem. The other method (going through Properties->Security then editing the permissions) is from hell. Thanks.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteHello ...
ReplyDeletemany thanks for the information
Tangki Panel
thank you, you make me smile : )
ReplyDeletethank you, you make me smile : )
ReplyDeleteYou are the man!!! Thumbs up for you.
ReplyDeleteBRO. Thank you!!!
ReplyDeleteJust tried this method, but I still get "Access is denied". The folder I'm trying to delete is in the Recycle bin.
ReplyDeleteI ended up starting Windows in safe mode and then I was able to delete the folder.
ReplyDeleteDamn!! It worked.
ReplyDeleteThanks a lot, Richard