![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | ACL - Search directories where inheritance has been broken? Is there a way to seach a directory tree and list out directories where inherited permissions from the parent directories have been broken? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: ACL - Search directories where inheritance has been broken? akcorr wrote: Quote: > Is there a way to seach a directory tree and list out directories where > inherited permissions from the parent directories have been broken? Pseudo-code: 1. get-acl on the directory you want to compare against. 2. loop through all the directories recursively and get their ACL. 3. compare the original ACL with the current one. 4. print something out if they are different. I'll play with it some more... Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
| | #3 (permalink) |
| | Re: ACL - Search directories where inheritance has been broken? akcorr wrote: Quote: > Is there a way to seach a directory tree and list out directories where > inherited permissions from the parent directories have been broken? PSH>$acl=get-acl . #Your base ACL you want to compare against. PSH> get-childitem . -recurse|where-object{$_.psiscontainer}| ` foreach-object{ if($(compare-object $((get-acl $_.fullname).access) ` $($acl.access)) -ne $null){$_.fullname} } Start this last command from the directory you want to look through and compare against $acl. (Sorry for the formatting!) -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| F3 Search Broken | Vista performance & maintenance | |||
| Listing Directories in file Search | PowerShell | |||
| Vista Search Horribly Broken?!?! | Vista General | |||
| Vista Search Index broken | Vista General | |||
| Broken Start Search | Vista General | |||