Connect-MicrosoftTeams not working

Anonymous
2019-09-21T21:59:22+00:00

Hi Team, Please advice am i doing something wrong

PS C:\WINDOWS\system32> find-Module -Name MicrosoftTeams

Version    Name                                Repository           Description

-------    ----                                ----------           -----------

1.0.2      MicrosoftTeams                      PSGallery            Teams Cmdlets module

Installed module using - install-Module -Name MicrosoftTeams.

Getting error when run     Connect-MicrosoftTeams

PS C:\WINDOWS\system32> Connect-MicrosoftTeams

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

Microsoft Teams | Microsoft Teams for business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

54 answers

Sort by: Most helpful
  1. Anonymous
    2021-05-09T13:58:58+00:00

    Sweet. Worked like a Charm !!

    I didn't have to downgrade MS Teams module.

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2020-11-26T13:41:33+00:00

    Hello Ashka123,

    Thanks for your prompt update. According to my experience, you should be able to connect to Microsoft Teams without any problems after installing the module. In order to narrow down the issue and find the root cause, I need to collect the following information:

    1. Whether powershell can find other cmdlets in that module. Run Import-Module -Name MicrosoftTeams. Then type add-team then press tab to see if it will get auto-completed. You can capture a screenshot for further check.
    2. Please check whether PowerShell can run other modules. For example, AAD and Exchange Online. Here is the command to connect to ADD: Connect-MsolService     
    3. Please run the following command to get the store info: $env:PSmodulepath -split ";"
    4. Run the following to gather stream info when processing the command: Connect-MicrosoftTeams -verbose and Connect-MsolService -verbose

    Please capture a screenshot of each output and upload them in the forum for further analyzing. Thanks for your patience and cooperation.

    Regards,

    Rick

    This worked for me after a restart

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-04-10T15:13:57+00:00

    I was able to troubleshoot this by running Import-Module after I instaledl the MicrosoftTeams module. I believe I also had to set the scope to "CurrentUser" a couple of times but, it now works.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2020-04-10T15:02:55+00:00

    I'm having exactly the same problem. Install-Module -name MicrosoftTeams is not working for me either.

    It appears the package 0.9.5 is not available for automatic download and install either so I am going to try an earlier version. Is there any estimate on a date this will be fixed?

    Was this answer helpful?

    0 comments No comments