Commands › Microsoft Teams
New-CsTeamsCortanaPolicy
The CsTeamsCortanaPolicy cmdlets enable administrators to control settings for Cortana voice assistant in Microsoft Teams.
Quick start script
# New-CsTeamsCortanaPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTeamsCortanaPolicy
$before | Format-List
# 3. Make the change (dry run first)
New-CsTeamsCortanaPolicy -Identity <XdsIdentity> -WhatIf
New-CsTeamsCortanaPolicy -Identity <XdsIdentity>
# 4. Verify and diff
$after = Get-CsTeamsCortanaPolicy
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
New-CsTeamsCortanaPolicy [-Tenant <System.Guid>] [-Description <String>] [-CortanaVoiceInvocationMode <String>]
[-AllowCortanaVoiceInvocation <Boolean>] [-AllowCortanaAmbientListening <Boolean>]
[-AllowCortanaInContextSuggestions <Boolean>] [-Identity] <XdsIdentity> [-InMemory] [-Force] [-WhatIf]
[-Confirm] [<CommonParameters>]
Parameters (11)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.