Commands › Exchange Online
Update-SafeList
Update the safelist aggregation data in Active Directory. Safelist aggregation data is used in the built-in anti-spam filtering in Microsoft Exchange. EdgeSync replicates safelist aggregation data to Edge Transport servers in the perimeter network.
Quick start script
# Update-SafeList — 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-SafeList
$before | Format-List
# 3. Make the change (dry run first)
Update-SafeList -Identity <MailboxIdParameter> -WhatIf
Update-SafeList -Identity <MailboxIdParameter>
# 4. Verify and diff
$after = Get-SafeList
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Update-SafeList [-Identity] <MailboxIdParameter>
[-Confirm]
[-DomainController <Fqdn>]
[-EnsureJunkEmailRule]
[-IncludeDomains]
[-Type <UpdateType>]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.