Expiration Set To -1 !!link!! — Powershell Cmdlet Disable Meeting Recording Transcript
At first glance, -1 looks like an error—a phantom parameter. In most programming contexts, negative numbers are invalid for time-based retention. Yet in the Microsoft Teams PowerShell module (specifically the Skype for Business Online Connector), The Anatomy of the Cmdlet The full command in context:
Set-CsMeetingRecordingExpirationSetting -Identity "Global" -DaysToKeep $null The -1 flag is not a bug or a hack—it’s a deliberate engineering choice for edge cases. Use it sparingly, document every -1 assignment in your change log, and pair it with a manual review schedule. Otherwise, your “forever” recordings become digital hoarding, buried under the weight of meetings no one will ever rewatch. At first glance, -1 looks like an error—a
Get-CsMeetingRecordingExpirationSetting -Identity "Global" Use it sparingly, document every -1 assignment in
Set-CsMeetingRecordingExpirationSetting -Identity "Global" -DaysToKeep 180 But when you truly need it, -1 is
Because in data governance, can you disable expiration doesn’t always mean you should . But when you truly need it, -1 is the most powerful integer in the PowerShell lexicon.