Server Fault is a question and answer site for system and network administrators. 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

How can I completely reset the security and ownership for a drive (ie. all subdirectories and files)?

I'm recreating a large RAID array and I'd like to "start fresh" with the absolute default security and permissions for everything.

I believe I need to run:

icacls . /reset /T /Q

EDIT: Also, what other files should I cleanup? (ie. thumbs.db, the system .ntfs folder, etc?)

share|improve this question
up vote 2 down vote accepted

Format the drive. That guarantees default security descriptors and cleans up everything else, too.

Update after comment from SofaKng:

Once you have created a fresh new volume copy everything back from your backup. Remember that permissions are not copied across volumes.

share|improve this answer
The problem is that I've backed up the data to another NTFS drive. This will keep the ACLs, right? Once I copy the data back to the new drive it will still have the same ACLs (which I don't want). – SofaKng Apr 28 '11 at 11:51
@SofaKng: xcopy or robocopy will not copy ACLs unless you specifically tell it to. – grawity Apr 28 '11 at 15:28
@SofaKng: Permissions are not retained when you copy to a different volume. See this KB: – Helge Klein Apr 28 '11 at 19:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.