Commands › Microsoft Teams
Set-CsTeamsComplianceRecordingPolicy
Modifies an existing Teams recording policy for governing automatic policy-based recording in your tenant. Automatic policy-based recording is only applicable to Microsoft Teams users.
Quick start script
# Set-CsTeamsComplianceRecordingPolicy — 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-CsTeamsComplianceRecordingPolicy
$before | Format-List
# 3. Make the change (dry run first)
Set-CsTeamsComplianceRecordingPolicy -WhatIf
Set-CsTeamsComplianceRecordingPolicy
# 4. Verify and diff
$after = Get-CsTeamsComplianceRecordingPolicy
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Identity (Default)
Set-CsTeamsComplianceRecordingPolicy [-Tenant <System.Guid>] [-Identity <XdsIdentity>]
[-Enabled <Boolean>] [-WarnUserOnRemoval <Boolean>] [-Description <String>]
[-DisableComplianceRecordingAudioNotificationForCalls <Boolean>] [-RecordReroutedCalls <Boolean>]
[-ComplianceRecordingApplications <ComplianceRecordingApplication[]>] [-CustomBanner <Guid>]
[-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Instance
Set-CsTeamsComplianceRecordingPolicy [-Tenant <System.Guid>] [-Instance <PSObject>]
[-Enabled <Boolean>] [-WarnUserOnRemoval <Boolean>] [-Description <String>]
[-ComplianceRecordingApplications <ComplianceRecordingApplication[]>]
[-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (13)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.