Creating list of mailbox permissions with Get-mailboxpermission cmd
Hello All,I would like to know if there is a way to export all users who have full mailbox permssions, or send as permissions to specific mailboxes. Basically, our company has many executive assistants that have fullaccess to their bosses email accounts. I'd like to get a list of who has access to what, in a format such as - User |Mailbox Access Rightsuser1|Full access for user4I've tried the following scriptwhich gives some info, but not exactly what im looking for:get-mailbox -resultsize unlimited | foreach {get-mailboxpermission $_.displayname} | select identity,accessrights | Export-Csv c:\permissions.csvAny help would be appreciated.
November 18th, 2009 6:21pm

Hi For getting full Access rights for all users use this one-liner get-mailbox -resultsize unlimited | foreach {get-mailboxPermission $_.Identity |Where {$_.AccessRights -like '*FullAccess*'}}| select User, identity,accessrights | Export-Csv c:\permissions.csv Here the output will mean that User has AccessRights on Identity. Regards, Laeeq Qazi|Snr Software Engineer(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
November 20th, 2009 1:48pm

for Send As Get-Mailbox -ResultSize unlimited | Get-ADPermissions | Where {$_.ExtendedRights -like "Send-As" -and $_.User -notlike "NT AUTHORIT\SELF" -and $_.Deny -eq $false} | ft Identity,User,IsInherited -AutoSize For Maibox Access Right Get-Mailbox | Get-MailboxPermission | Where-Object { ($_.AccessRights -eq "*fullaccess*") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "*nt authority\self*") } See below http://www.howexchangeworks.com/2009/07/exchange-shell-finding-mailboxes-with.htmlVinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
November 20th, 2009 2:33pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics