Skip to content

Instantly share code, notes, and snippets.

@TiloGit
Created March 31, 2022 22:23
Show Gist options
  • Save TiloGit/6163231dee69bdd63e549a4b0207cbca to your computer and use it in GitHub Desktop.
Save TiloGit/6163231dee69bdd63e549a4b0207cbca to your computer and use it in GitHub Desktop.
set MS Teams Media bit rate (Kbs)
#PS use shell.azure.com
Connect-MicrosoftTeams -UseDeviceAuthentication
##use browser to login
##check value
Get-CsTeamsMeetingPolicy | select Identity, WhoCanRegister, MediaBitRateKb , RecordingStorageMode
##set to new value
Set-CsTeamsMeetingPolicy -Identity Global -MediaBitRateKb 50001
###output:
PS /home/tilo> Get-CsTeamsMeetingPolicy | select Identity, WhoCanRegister, MediaBitRateKb , RecordingStorageMode
Identity WhoCanRegister MediaBitRateKb RecordingStorageMode
-------- -------------- -------------- --------------------
Global Everyone 120 Stream
Tag:MY-Webinar Everyone 50000 Stream
Tag:AllOn Everyone 50000 OneDriveForBusiness
Tag:RestrictedAnonymousAccess Everyone 50000 OneDriveForBusiness
Tag:AllOff Everyone 50000 OneDriveForBusiness
Tag:RestrictedAnonymousNoRecording Everyone 50000 OneDriveForBusiness
Tag:Default Everyone 50000 OneDriveForBusiness
Tag:Kiosk Everyone 50000 OneDriveForBusiness
##now set to new value
PS /home/tilo> Set-CsTeamsMeetingPolicy -Identity Global -MediaBitRateKb 50001
## check
PS /home/tilo> Get-CsTeamsMeetingPolicy | select Identity, WhoCanRegister, MediaBitRateKb , RecordingStorageMode
Identity WhoCanRegister MediaBitRateKb RecordingStorageMode
-------- -------------- -------------- --------------------
Global Everyone 50001 Stream
Tag:MY-Webinar Everyone 50000 Stream
Tag:AllOn Everyone 50000 OneDriveForBusiness
Tag:RestrictedAnonymousAccess Everyone 50000 OneDriveForBusiness
Tag:AllOff Everyone 50000 OneDriveForBusiness
Tag:RestrictedAnonymousNoRecording Everyone 50000 OneDriveForBusiness
Tag:Default Everyone 50000 OneDriveForBusiness
Tag:Kiosk Everyone 50000 OneDriveForBusiness
@TiloGit
Copy link
Author

TiloGit commented Mar 31, 2022

our value for no good reason changed to 120, we couldn't fix it in the GUI
We can't update the policy right now. Try again. If you continue to have problems, contact [Microsoft customer support].

PS worked tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment