# Get-QADGroup - List users with folder access

Hi everyone,

***I am using the quest.activeroles.admanagement PS Snapin***

I will try and keep it clean and simple.

Basically I have a list of 100+ full folder paths (network drive). My challenge is to list all the INDIVIDUAL users who have access to each folder(Read/Write doesn't matter). 99.9% of these folders are only populated with secuirty groups - there is where I am struggling as the top level groups have several nested groups and users within.

All I have been given is a .txt file with a list like:

F:\abc\
F:\def\
F:\ghi\
F:\jkl\

And would like to list the users next to each.

###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Author Commented:
I have initially executed this to succesfully obtain a list of all the groups that have access to each folder:



get-content 'C:\.....\fdrive_list.txt' | foreach-object { get-acl $_ } | Export-CSV 'C:\.....\fdrive_groups.csv'   However, it outputs a lot of information I do not need. The AccessToString is populated with all of the groups - however it also includes the Allow Write, Delte, Read permissions which makes listing them in a neat list with just the group names only near impossible. e.g. It will list it like: DOMAIN\App_xxx_yyy_zzz_Users Allow Modify, SynchronizeDOMAIN\App_aaa_bbb_ccc_Users Allow Modify, Synchronize 0 Commented: I've used DumpSEC (DumpACL) Should be able to Google the name to find it. Not sure how well it work on 2008 You will always have to remove a certain amount of excess information you don't want,...but it puts it into a CSV format that once pulled into a spreadsheet you can remove any excess rows or columns. They may even be a way to run a query against the speadsheet so it only returns what you want. 0 Professional Services EngineerCommented: Here's what I've come up with. It took me a little bit to figure it out.$Files = gci c:\scripts -recurse
foreach ($File in$Files){
"Checking File: $($File.fullname)"
$Access =$File | get-acl | %{$_.Access}$Users = $Access | %{Get-QADUser ($_.identityreference.tostring())} | ?{$_.type -eq "User"} Foreach ($User in $Users){ if ($User -ne $null){ "$User has access to file $($File.fullname)"}#end if
}#end foreach
}

It's slow, but it works.

It basically gets all the identities from a folder/file permission set and attempts to find them in AD.  If it finds an actual person/account, it will return it.

One thing to note: if you have a domain you're under, you can use that to check instead of "?{\$_.type -eq "User"}

Good luck!

Dale Harris
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Solutions ArchitectCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.