Commands › SharePoint Online

Set-SPOContentEventEmailAddresses

SharePoint Online Microsoft.Online.SharePoint.PowerShell Set-*

Adds the email addresses to the specified category of content event. Consequently, notification emails will be sent to these addresses.

Quick start script

# Set-SPOContentEventEmailAddresses — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

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

# 3. Make the change
Set-SPOContentEventEmailAddresses -Category <ContentEventCategory> -EmailAddresses <String[]>

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

Syntax

Set-SPOContentEventEmailAddresses [-Category] <ContentEventCategory> [-EmailAddresses] <String[]>
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Category ContentEventCategory yes Specifies the content event category.
-EmailAddresses String[] yes List of comma seperated email addresses

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