What is the best way to fix NTFS file permissions to inherit parent?
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?
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.
Combine these 2 commands on elevated CMD or PowerShell:
takeown /f C:\Windows\CSC\v2.0.6\namespace\ /r
icacls C:\Windows\CSC\v2.0.6\namespace\ /t /grant everyone:F