powershell - change Teams recording location from STREAM to OneDrive

Modified on Tue, 5 Jul, 2022 at 12:46 PM


Using below command you can change default location of Teams Recording
As recordings are saved as videos in STREAM. You can change it to save on user OneDrive instead.



Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
                                                                                                                        Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows                                                                                                                                                  


     PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned                                                                                                                                                                                        Execution Policy Change                                                                                                 The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose   you to the security risks described in the about_Execution_Policies help topic at                                       https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A

PS C:\WINDOWS\system32> Install-Module -Name PowerShellGet -Force -AllowClobber

PS C:\WINDOWS\system32> Install-Module -Name MicrosoftTeams -Force -AllowClobber

PS C:\WINDOWS\system32> Import-Module MicrosoftTeams

PS C:\WINDOWS\system32> Connect-MicrosoftTeams

Account               Environment Tenant                               TenantId
-------               ----------- ------                               --------
netcoreadmin@qcin.org AzureCloud  3fa50ba6-5a24-4f02-8065-953c84cb357f 3fa50ba6-5a24-4f02-8065-953c84cb357f


PS C:\WINDOWS\system32> Update-Module MicrosoftTeams


PS C:\WINDOWS\system32> Set-CsTeamsMeetingPolicy -Identity Global -RecordingStorageMode "OneDriveForBusiness"
PS C:\WINDOWS\system32>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article