Remove and re-add inheritance on file structure.


server 2008r2. somehow, on time, have instances inheritance has been removed, rights screwed with, , have been blocked having rights on files supposed to. suspect sloppy work junior administrators not following proper procedures, beside point. have corrected rights issues via cacls , takeown necessary, want verify , re-set inheritance because broken somewhere in directory structure. unable correct via gui "apply on , subfolders", access denied, though can verify on file complaining not have access (the administrators local group) has full control, owner of file, , can open file.

looking scripted way first remove inheritance on every file in given directory , subdirectories, re-apply inheritance , set inherited acl's on files.

first, possible, second if so, how?

hi,

i think possible using command tool such icacls.

for example, icacls c:\root\sub /reset /t can reset permission of c:\folder\sub folder inherit permission settings on c:\root. then we can modify permission on c:\root\sub spcifically incorrect permissions removed.  


shaon shan |technet subscriber support in forum |if have feedback on our support, please contact tngfb@microsoft.com


Windows Server  >  File Services and Storage



Comments

Popular posts from this blog

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B