script to retreive permission help
hi all,
Exchange 2007 SP2
Can anyone help me to find
1)mailboxes which has send-as permission assignd'
2)mailboxes which has full mailbox permission assignd'
through exchange powershell and output to csv file?
Thank you.
December 7th, 2010 8:51pm
[PS] C:\>Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like "*Send-As*")} | Export-CSV -Path c:\SendAs.CSV
Free Windows Admin Tool Kit Click here and download it now
December 14th, 2010 5:30pm
Hi John,
Please refer to the CMDLets below:
Get-Mailbox –Server your server name | Get-MailboxPermission | Where-Object {$_.AccessRights –eq “FullAccess”} | fl >c:\Fullaccess.txt
Get-Mailbox –Server your server name | Get-ADPermission | Where-Object {$_.ExtendedRights –like “Send-As”} | fl >c:\SendAs.txt
Best regards,
SerenaPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
December 15th, 2010 5:26am