Powershell Script required for exchange 2010

Morning Powershell Gods

I need a script to to be able to run against an exchnage user to see what access they have to other users mailboxes please.

Thanks chums

Si
cybersiAsked:
Who is Participating?
 
EvilKnievelCommented:
To check which mailboxes a user has full access to you can use the following ems cmd:

ForEach ($mbx in (Get-Mailbox -Resultsize Unlimited | Select Identity)) {Get-MailboxPermission $mbx.Identity -User fill in username here| ? {$_.AccessRights -match "FullAccess" -and $_.IsInherited -eq $False} | Select Identity}

For Send As rights:
ForEach ($mbx in (Get-Mailbox -Resultsize Unlimited | Select Identity)) {Get-MailboxPermission $mbx.Identity -User fill in username here| ? {$_.AccessRights -match "SendAs" -and $_.IsInherited -eq $False} | Select Identity}
0
 
cybersiAuthor Commented:
Just had a thought maybe i need 2 scripts

1. for send access
2. for full access

thanks again

Si
0
 
cybersiAuthor Commented:
Absolutley Brilliant!!

One question - is it possible to run a script against the entire exchange database for all users that exports to a csv file again for both Send and full permissions?

Thanks EvilKnievel (great username by the way)

Simon
0
 
cybersiAuthor Commented:
No Problem I'll post another thanks for answering the first question bud
0
 
EvilKnievelCommented:
Hello Simon,
sorry for my late reaction, i was away for a few days.
Glad you like my username btw :)
0
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.

All Courses

From novice to tech pro — start learning today.