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?)

link|improve this question

67% accept rate
feedback

1 Answer

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.

link|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
1  
@SofaKng: xcopy or robocopy will not copy ACLs unless you specifically tell it to. – grawity Apr 28 '11 at 15:28
1  
@SofaKng: Permissions are not retained when you copy to a different volume. See this KB: support.microsoft.com/kb/310316 – Helge Klein Apr 28 '11 at 19:27
feedback

Your Answer

 
or
required, but never shown

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