Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.