Commands › Microsoft Teams

Get-CsTeamsCortanaPolicy

Microsoft Teams MicrosoftTeams Get-*

The CsTeamsCortanaPolicy cmdlets enable administrators to control settings for Cortana voice assistant in Microsoft Teams.

Quick start script

# Get-CsTeamsCortanaPolicy — 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-CsTeamsCortanaPolicy | Format-List

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

Syntax — 2 parameter sets

Identity (Default)

Get-CsTeamsCortanaPolicy [-Tenant <System.Guid>] [[-Identity] <XdsIdentity>] [-LocalStore] [<CommonParameters>]

Filter

Get-CsTeamsCortanaPolicy [-Tenant <System.Guid>] [-Filter <String>] [-LocalStore] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Filter String Enables you to use wildcards when specifying the policy (or policies) to be retrieved. For example, this syntax returns all the policies that have been configured at the site scope: -Filter "site:". This syntax...
-Identity XdsIdentity Unique identifier for the policy to be returned. To return the global policy, use this syntax: -Identity global. To return a policy configured at the site scope, use syntax similar to this: -Identity "site:Redmond"....
-LocalStore SwitchParameter Retrieves the Cortana voice assistant policy data from the local replica of the Central Management store rather than from the Central Management store itself.
-Tenant Guid Globally unique identifier (GUID) of the Skype for Business Online tenant account whose Cortana voice assistant policies are being returned.

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