Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an external hard drive and I did something which I shouldn't have done, and I am annoyed that many files are prompting me about Administrator permissions to move a folder. They are regular files.

How do I reset all the permission on the external hard drive?

share|improve this question
Do you just want to set all file permissions to something specific? When you say 'reset', I think of 'revert' - which I'm not sure is exactly what you want..? – Doc Aug 9 '11 at 20:15
What would be considered not a regular file? – joeqwerty Aug 9 '11 at 21:06
joeqwerty: thing that the OS depends on being there. Such as files in program/ or windows/. This is a extern HD for data files (audios, videos, backed up code, etc).@Doc: I do mean revert. I want any user to add/remove/move files like it was originally – acidzombie24 Aug 9 '11 at 21:29

Run this command to navigate to the drive letter, example is D


To reset all permissions, run this command

icacls * /reset /t /c /q

More info

    replaces ACLs with default inherited ACLs for all matching files.

/t indicates that this operation is performed on all matching
    files/directories below the directories specified in the name.

/c indicates that this operation will continue on all file errors.
    Error messages will still be displayed.

/q indicates that icacls should supress success messages.

Resetting NTFS files security and permission in Windows 7

share|improve this answer

As answered in comments of this being a duplicate, use cacls with the subdirectory option to go through subfolders as well, with /G:Everyone. So the final command would be: CACLS x:\*.* /G:Everyone /T

share|improve this answer
cacls is being deprecated, for vista or newer you should be using icacls. It adds new features like folder inheritance permissions. – Scott Chamberlain Oct 26 '12 at 13:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .