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
    2019-10-12T02:21:49+00:00

    one more issue when creating team

    PS C:\WINDOWS\system32> new-team -DisplayName "Learning" -Description "testing" -Visibility Private

    new-team : Error occurred while executing 

    Code: GeneralException

    Message: Creating team in skype failed with error: Failed to  execute http request CreateThreadRequest. 

    Request Method: POST, Request Url: https://bl2pv2.pg.msg.infra.teams.microsoft.com/v1/threads, . More than 2 

    redirects are needed for finishing the request .

    InnerError:

      RequestId: 6187c7f1-82dc-40c4-996c-f1de26958b47

      DateTimeStamp: 2019-10-12T02:17:59

    HttpStatusCode: GeneralException

    At line:1 char:1

    • new-team -DisplayName "Learning" -Description "testing" -Visibility P ...
    • 
      

        + CategoryInfo          : NotSpecified: (:) [New-Team], ApiException

        + FullyQualifiedErrorId : Microsoft.TeamsCmdlets.PowerShell.Custom.ErrorHandling.ApiException,Microsoft. 

       TeamsCmdlets.PowerShell.Custom.NewTeam

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-10-11T13:51:19+00:00

    ISE powershell output

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-10-10T21:55:34+00:00

    Hello Ashka123,

    I'm writing to follow up the thread. Please feel free to let me when you have any update. 

    Regards,

    Rick

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-10-08T14:48:44+00:00

    Hello Ashka123,

    Thanks for your prompt update! Since the PowerShell ISE works as expected, we can confirm the issue is related to your PowerShell environment. But I want to set up an expectation that it still may need a long time to reach the endpoint of this investigation. As a temporary workaround, you can use PowerShell ISE and run the cmdlets.

    For the next troubleshooting steps, please run the following commands via PowerShell ISE:

    1. Check if you have custom profile. Run Test-Path $profile separately
    2. Please run the following cmdlet: $host.Runspace | fl separately

    Regards,

    Rick

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2019-10-06T22:05:46+00:00

    Hello Ashka123,

    Sorry for the late reply because I was off duty before. In order to look into the issue further, would you please check my reply on September 29, try the 3 points, and let me know results. It is important for the next troubleshooting steps. It may need some time for further investigating but I will try my best to help you.

    Regards,

    Rick

    Was this answer helpful?

    0 comments No comments