Commands › Microsoft Teams

Get-CsTeamsEventsPolicy

Microsoft Teams MicrosoftTeams Get-*

Returns information about the Teams Events policy. Note that this policy is currently still in preview.

Quick start script

# Get-CsTeamsEventsPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Get-CsTeamsEventsPolicy | Format-List

# 3. Export for evidence / drift tracking
Get-CsTeamsEventsPolicy | Export-Clixml .\CsTeamsEventsPolicy-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Identity (Default)

Get-CsTeamsEventsPolicy [[-Identity] <String>] [<CommonParameters>]

Filter

Get-CsTeamsEventsPolicy [-Filter <String>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Filter String Enables using wildcards when specifying the policy (or policies) to be retrieved. Note that you cannot use both the Filter and the Identity parameters in the same command.
-Identity String Unique identifier assigned to the Teams Events policy.

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