Jaa


Export Full Mailbox and SendAs permission

Ciao a tutti,

di seguito due utilissimi scriptini per effettuare l’export su file CSV dei permessi “Full Mailbox” e “SendAs”.

Per il full mailbox access:

Get-Mailbox -resultsize unlimited | Get-MailboxPermission | where {($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq "false") -and ($_.Deny -like "false") } | select identity, user, @{name="Access Rights";expression={$_.get_accessrights()}},isinherited,deny | Export-csv c:\FullMBXRIGHTS.CSV -NoType

Per il Send-As:

Get-Mailbox -resultsize unlimited | Get-ADPermission | where {($_.extendedrights -like "Send-As")} | select identity, user, @{name="Access Rights";expression={$_.get_extendedrights()}},isinherited,deny | Export-csv c:\SendASMBXRIGHTS.CSV -NoType

Buona giornata e a presto! Smile

Massimiliano Sechi