7

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?

4

2 Answers 2

11

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

D:

To reset all permissions, run this command

icacls * /reset /t /c /q

More info

/reset
    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

0

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

1
  • 4
    cacls is being deprecated, for vista or newer you should be using icacls. It adds new features like folder inheritance permissions. Oct 26, 2012 at 13:43

You must log in to answer this question.