List all Users Who Have Access to Other Exchange Mailboxes:Change the items below that are in bold to fit your needs.
Powershell
Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation C:\*location*\mailboxpermissionssource.csv
Powershell
Get-Mailbox -Filter {ForwardingAddress -ne $Null} |Select Alias, ForwardingAddress | Export-Csv -NoType -encoding "unicode" C:\*location*\MailboxesForwardTo.csv
Get mailbox grant send on behalf to:Change the items below that are in bold to fit your needs.
Powershell
Get-Mailbox -Filter {GrantSendOnBehalfTo -ne $Null} |Select Alias, @{Name='GrantSendOnBeh
alfTo';Expression={[string]::join(";", ($_.GrantSendOnBehalfTo))}} | Export-Csv -NoType -encoding "unicode" C:\*location*\MailboxesSendOnBehalf.csv
Get mailbox accept messages only from senders or members:Change the items below that are in bold to fit your needs.
Powershell
Get-Mailbox | Where-Object {$_.AcceptMessagesOnlyFromSendersOrMembers -ne $Null} | Select Alias, @{Name='AcceptMessagesOnlyFromSendersOrMembers';Expression={[string]::join(";", ($_.AcceptMessagesOnlyFromSendersOrMembers))}} | Export-Csv -NoType -encoding "unicode" C:\*location*\MailboxesAcceptFrom.csv
Get mailbox reject messages from senders or members:Change the items below that are in bold to fit your needs.
Powershell
Get-Mailbox | Where-Object {$_.RejectMessagesFromSendersOrMembers -ne $Null} | Select Alias, @{Name='RejectMessagesFromSendersOrMembers';Expression={[string]::join(";", ($_.RejectMessagesFromSendersOrMembers))}} | Export-Csv -NoType -encoding "unicode" C:\*location*\MailboxesRejectFrom.csv
Get Distribution group accept messages only from:Change the items below that are in bold to fit your needs.
Powershell
Get-DistributionGroup | Where-Object {$_.AcceptMessagesOnlyFromSendersOrMembers -ne $Null} | Select Alias, @{Name='AcceptMessagesOnlyFromSendersOrMembers';Expression={[string]::join(";", ($_.AcceptMessagesOnlyFromSendersOrMembers))}} | Export-Csv -NoType -encoding "unicode" C:\*location*\GroupsAcceptFrom.csv
Get Distribution group reject messages from sender or members:Change the items below that are in bold to fit your needs.
Powershell
Get-DistributionGroup | Where-Object {$_.RejectMessagesFromSendersOrMembers -ne $Null} | Select Alias, @{Name='RejectMessagesFromSendersOrMembers';Expression={[string]::join(";", ($_.RejectMessagesFromSendersOrMembers))}} | Export-Csv -NoType -encoding "unicode" C:\*location*\GroupsRejectFrom.csv
-Jay
Nessun commento:
Posta un commento
Lascia qui il tuo commento.