Set-CsMeetingRecordingExpirationSetting -Identity "Global" -DaysToKeep $null
Before running the command, you must connect to the Teams PowerShell module.
: If left unconfigured, Teams meeting recordings typically expire after 120 days by default.
When you set DaysToKeep -1 , you are not setting a negative number of days. You are invoking a —a hardcoded flag in Microsoft’s backend logic that translates to:
Once this setting is applied: