Exercise - Create a meeting policy and assign with PowerShell
In this exercise, you'll create a meeting policy to disable remote control and enable lobby bypass for Everyone. We're looking to streamline our administration process so we'll use PowerShell to apply the policy to the group.
First, we'll create and customize the policy in the Teams Admin Center:
Sign in to Teams admin center as a Teams Administrator or the Global Administrator
In the left navigation menu, select Meetings then Meeting Policies
In Meeting Policies, select the Add button to create a new policy.
Give the policy the name “No Lobby and no remote control” and the description **“No Lobby and no remote control”
In the Who can bypass the lobby in the drop down select Everyone
Under content sharing disable External participants can give or request control and Participants can give or request control
Select Save to create the policy.
Assign the Lobby and no remote-control policy with PowerShell
In this step, we'll assign the Messaging Policy to the Tax specialists with PowerShell
Run PowerShell as Administrator.
First, install the Microsoft Teams PowerShell module if it's not already installed. To do so run the following command:
Install-Module -Name MicrosoftTeams
Next, connect to the Microsoft Teams PowerShell module using the following command:
Connect-MicrosoftTeams
Now, we'll assign the messaging policy to a security group with the following command:
Grant-CsTeamsMessagingPolicy -Identity “Tax specialists” -PolicyName “No Lobby and no remote control”
Watch the output. Note the policy is now assigned to that group
You have successfully assigned a Microsoft Teams messaging policy to a security group using PowerShell. Our tax specialists now have both policies applied.
Note
Note Teams policies are not applied to users instantly. It may take up to 24 hours for policies to update and apply to all users on their various clients.
Check your work
Note, it may take up to 24 hours for policies in Microsoft Teams to take effect. Once this period has elapsed, we can test if the policy is applied.
Create a third browser profile, we'll use this to join a test meeting and prove the no lobby policy is applied:
Open the Microsoft Edge browser.
Select the profile button on the top right.
From the drop-down menu, select, other profile and add profile.
Select add and start without your data.
For Make your Microsoft Experience more useful to you, select Allow.
You now have a third isolated browser profile.
Browser to teams.microsoft.com and sign user1 into Microsoft Teams in the web client.
Using the Microsoft Edge browser profile for user1:
In the browser for user1, sign into teams.microsoft.com web client.
Schedule a meeting from user1 in Microsoft Teams.
Join the meeting as user1 with the web client.
When in the meeting, select the three dots, then meeting info.
Select and copy the meeting URL from the invite.
Navigate to your new browser profile, with no user signed into Office 365, and paste the URL.
Now join the user1 meeting as an anonymous user.
When you select join, note the anonymous user joins the meeting directly and doesn't get put in the lobby.
If the anonymous user bypassed the lobby, the policy has been successfully applied.