![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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) | ||||||||||||
| Guest | Re: ACL - Search directories where inheritance has been broken? akcorr wrote:
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) | ||||||||||||
| Guest | Re: ACL - Search directories where inheritance has been broken? akcorr wrote:
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 | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| F3 Search Broken | edde | Vista performance & maintenance | 4 | 04-03-2008 09:26 PM |
| Listing Directories in file Search | Andy1974 | PowerShell | 2 | 02-07-2008 11:08 PM |
| Vista Search Horribly Broken?!?! | Ninjak on FW | Vista General | 3 | 09-28-2007 11:57 PM |
| Vista Search Index broken | Nigel Freeney | Vista General | 1 | 08-09-2007 07:40 AM |
| Broken Start Search | Porkribs | Vista General | 1 | 08-07-2007 08:44 PM |