Commands › Exchange Online

Remove-BlockedSenderAddress

Exchange Online ExchangeOnlineManagement Remove-*

Unblock users in your Microsoft 365 organization that were affected by the protection system. These users sent multiple messages that were classified as spam, so they were blocked from sending messages. **Note**: There's a limit to the number of times you can unblock a Microsoft 365 account. If you exceed the unblock limit for a user, you get an error, and you need to contact Microsoft Support to unblock the user.

Quick start script

# Remove-BlockedSenderAddress — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-BlockedSenderAddress
$before | Format-List

# 3. Make the change
Remove-BlockedSenderAddress -SenderAddress <SmtpAddress>

# 4. Verify and diff
$after = Get-BlockedSenderAddress
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Remove-BlockedSenderAddress -SenderAddress <SmtpAddress>
 [-Reason <String>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-SenderAddress SmtpAddress yes The SenderAddress parameter specifies the email address of the user that you want to unblock.
-Reason String The Reason parameter specifies the reason the user was blocked (the Reason property value). If the value contains spaces, enclose the value in quotation marks (").

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.