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:
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. At first glance, -1 looks like an error—a
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. But when you truly need it, -1 is
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:
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.
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.