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
    2020-03-16T19:51:40+00:00

    I am getting same error in ISE also.

    there is no difference between powershell and powershell ISE regarding to the teams module,

    so the solution is the same, unistall the current version and install an older version by running :

    Uninstall-Module MicrosoftTeams

     and then you install the version you want / need :

    Install-Module -Name MicrosoftTeams -RequiredVersion 1.0.0 or

    Install-Module -Name MicrosoftTeams -RequiredVersion 0.9.5 (we seem to have other problems with 1.0.0)

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-03-04T09:09:14+00:00

    This was only solution to same problem for me. No other version worked, only 1.0.0

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2019-09-22T06:29:27+00:00

    Hello Ashka123,

    Thanks for your prompt update here. I can see the output shows you have installed the module successfully. However, it seems to have some problems. I suggest you re-install it to see how it goes:

    1. Run Windows PowerShell as an administrator). Run the command Uninstall-Module -Name MicrosoftTeams
    2. Run the Install-Module MicrosoftTeams command. If prompted to install the NuGet provider, type Y and press ENTER. If prompted to install the module from PSGallery, type Y and press ENTER.

    After it is installed successfully, please Connect-MicrosoftTeams again and see whether it works now. If the same issue persists, please capture a screenshot of the entire output for further check.

    Regards,

    Rick

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-10-06T23:08:01+00:00

    yes it works when run powershell ISE as a administrator. Does that mean i need to use powershell ISE to connect team

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2019-09-23T02:19:47+00:00

    Hello Ashka123,

    From the latest error message you provided, I can see the module was installed without any problems but the installed module wasn’t imported to the session when you use any commands. Please run the following command Import-Module -Name MicrosoftTeams to import the Microsoft Teams module or Get-Module -ListAvailable | Import-Module to import all the available modules.

    Please feel free to post back if you have any update on it.

    Regards,

    Rick

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments