powershell - How to find out who has full mailbox access for a list of users in exchange 2010 -
i need figure out way see has full access list of mailboxes in exchange 2010 powershell. can use get-mailbox | get-mailboxpermission | {$.user.tostring() -ne "nt authority\self" -and $.isinherited -eq $false}
see has full access every mailbox in organization wondering if can call csv or text file view permissions mailboxes listed.
sure can. call import-csv
csv, or get-content
text files (one line = 1 name), resultant array go foreach { get_mailbox -identity $_.name | ...}
. example:
<<text file follows>> user1 user2 user3 <<script follows>> get-content textfile.txt | foreach { get_mailbox -identity $_ | get-mailboxpermission | {$_.user.tostring() -ne "nt authority\self" -and $.isinherited -eq $false} }
Comments
Post a Comment