https://outlook.office365.com/ecp > Hybrid > "The Exchange Online PowerShell Module..." > Configure > Install
Uninstall-Module ExchangeOnlineManagement Install-Module ExchangeOnlineManagement Import-Module ExchangeOnlineManagement
$UserCredential = Get-Credential Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
Connect-EXOPSSession -UserPrincipalName user@email.com
Get-Mailbox user@tdomain.com | Format-List lit
Get-InboxRule -Mailbox "[email@address.com]" | Select Name, Description, Enabled, Priority, ForwardTo, ForwardAsAttachmentTo, RedirectTo, DeleteMessage
Set-Mailbox kimakers@contoso.com -RecipientLimits 20
(Get-Mailbox | Where-Object {$.RecipientTypeDetails -ne "DiscoveryMailbox"}) | % {Set-Mailbox $.Identity -RecipientLimits 10}
Update the default Recipient Limits for new mailboxes created in the future (all plans, tenant-level)
Get-MailboxPlan | Set-MailboxPlan -RecipientLimits 50 Set-TransportConfig -MaxRecipientEnvelopeLimit 50
$mailbox="tony@company.com" $StartDate = (Get-Date).AddDays(-365) $EndDate = get-date $UnifiedAuditLog = Search-UnifiedAuditLog -UserIds $mailbox -StartDate $StartDate -EndDate $EndDate -SessionCommand ReturnLargeSet -ResultSize 5000 $UnifiedAuditLog | Select-Object CreationDate, UserIDs, Operations, AuditData | Export-Csv ($mailbox + "_UnifiedAuditLog.csv") -NoTypeInformation
$userSMTP = "user@email.com" $Trace = @() $Trace += Get-MessageTrace -RecipientAddress $userSMTP -StartDate 02/17/2021 -EndDate 02/23/2021 $Trace += Get-MessageTrace -RecipientAddress $userSMTP -StartDate 02/17/2021 -EndDate 02/23/2021 $Trace | Select-Object Received, MessageTraceId, Size, SenderAddress, FromIP, RecipientAddress, ToIP, Subject, Status | Export-Csv -NoTypeInformation ("C:\logs" + $userSMTP.Split('@')[0] + "_messagetrace.csv")
Get-ProtectionAlert | Format-List Name,Category,Comment,NotifyUser