Commands › Microsoft Teams
Set-CsTeamsAIPolicy
This cmdlet sets Teams AI policy value for users in the tenant.
Quick start script
# Set-CsTeamsAIPolicy — 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-CsTeamsAIPolicy
$before | Format-List
# 3. Make the change
Set-CsTeamsAIPolicy -EnrollFace <String> -EnrollVoice <String> -PassiveVoiceEnrollment <String>
# 4. Verify and diff
$after = Get-CsTeamsAIPolicy
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-CsTeamsAIPolicy [[-Identity] <string>]
[-EnrollFace <string>]
[-EnrollVoice <string>]
[-PassiveVoiceEnrollment <string>]
[-SpeakerAttributionBYOD <string>]
[-Description <string>]
[<CommonParameters>]
Parameters (6)
Message Center changes mentioning this command
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.