Situation: When running PowerShell command:
Connect-MicrosoftTeams
you may get this error:
Connect-MicrosoftTeams : The term ‘Connect-MicrosoftTeams’ is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Connect-MicrosoftTeams
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Connect-MicrosoftTeams:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Resolution: Uninstall and re-install early teams PowerShell Module:
Uninstall-Module MicrosoftTeams
Install-Module -Name MicrosoftTeams -RequiredVersion 1.0.0