Skip to content

Set-EXOUserBriefingConfig

Exchange Online Management: Enables or disables Briefing email for a user

#Requires -Version 5.1

[CmdletBinding()]
Param(
    [Parameter(Mandatory = $true)]
    [string]$Identity,
    [bool]$Enabled
)

Process {
    try {
        [hashtable]$cmdArgs = @{'ErrorAction' = 'Stop'; 'Identity' = $Identity; 'Enabled' = $Enabled}

        $result = Set-UserBriefingConfig @cmdArgs | Select-Object *
        if ($null -eq $result) {
            Write-Output "Briefing configuration updated"
            return
        }
        $result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format "yyyy-MM-dd HH:mm:ss") -PassThru -Force
    }
    catch { throw }
}

The user to modify (e.g., user@domain.com)

Enable or disable the Briefing email for the user

An interactive directory of PowerShell scripts.