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.

When XP clients move files on the same volume, the permissions are moved with it. With Windows 7 clients and up, when a file is moved, the permissions are inherited.

Unfortunately, we still have a lot of Windows XP clients which after time causes our file server to be a bit of a mess. What is the best way to recursively go through an entire volume and reset file permissions (not directory) so that they inherit their parent directory. Can XCALCS do this?

share|improve this question
1  
How about right-clicking each parent directory, going to Properties, then Security tab, then click Advanced, then click Change Permissions, then check that checkbox that says "Replace all child object permissions with inheritable permissions from this object"? –  Ryan Ries Sep 9 '13 at 17:21
    
@RyanRies Put this as answer. –  Lorenz Meyer Sep 9 '13 at 18:05

1 Answer 1

up vote 4 down vote accepted

How about right-clicking each parent directory, going to Properties, then Security tab, then click Advanced, then click Change Permissions, then check that checkbox that says "Replace all child object permissions with inheritable permissions from this object"?

If you have a ton of parent directories and you want to script this instead of doing it by hand:

icacls "c:\parentDirectory\*" /q /c /t /reset

Shoud have the same effect as clicking the Replace all child object permissions with inheritable permissions from this object checkbox.

share|improve this answer
    
Manually right clicking is definitely not going to work, too many random directories. The icacls thing is exactly what I was looking for. Thanks. –  Ryan Mortier Sep 9 '13 at 21:05

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.