In the last article, we saw about executing the PowerShell Script to update the Meeting Policy.
But, when actually executing, we will face few issues. We are going to discuss about those issues.
The below are the steps to clear those exceptions.
1. We need to install the Module MicrosoftTeams
Install-Module MicrosoftTeams
2. Click Yes to All or Yes.
3. Now, connect with the Teams using
Connect-MicrosoftTeams
This will populate the credentials window and key in the credentials.
4. Once, successfully connected, the screen will looks as below.
5. Then, when we try to update the meeting policy using the command
We will get the below exception.
6. To resolve that, we need to install the Skype for Business Online Windows PowerShell Module. We can download it from the below link.
https://www.microsoft.com/en-us/download/details.aspx?id=39366
7. Once the Skype for Business Online PowerShell Module has been installed, then create a new online session
8. While doing that, I was getting the below exception.
The specified module ‘SkypeOnlineConnector’ was not loaded because no valid module file was found in any module directory.
9. Hence, we need to import the SkypeOnlineConnector
10. After importing Create a new Online session
11. Import the Session
12. Then, we can access the commands which starts as Cs (Get-CsTeamsMeetingPolicy, Set-CsTeamsMeetingPolicy)
Happy Coding
Sathish Nadarajan
Leave a comment