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: Oldest
  1. 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
  2. Anonymous
    2019-10-11T13:51:19+00:00

    ISE powershell output

    Was this answer helpful?

    0 comments No comments
  3. 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
  4. Anonymous
    2019-10-14T07:00:24+00:00

    Hello Ashka123,

    Sorry for the delay reply. We escalated your case as your problem persists after a lot of troubleshooting. This is Sylvie and I am writing this thread by now. We truly appreciate all your efforts and patience during our troubleshooting process.

    Currently we identified that the main problem could be related to your PS environment. For the above cmdlets provided by Rick, it was his typo, the two cmdlets should be as following:

    Test-Path $profile

    $host.Runspace | fl

    This can help you check whether you have the correct PowerShell profile configured in your Windows PC.

    Meanwhile, for the new problem you encountered, I would like to confirm the following:

    1. May I know if you run this cmdlet in PowerShell ISE as administrator?
    2. When does this “Connect-MicrosoftTeams” problem happen? Does it happen after upgrading windows or PowerShell?

    Rick suggested creating a new Windows profile before, but we haven’t received the feedback from you. If haven’t did it before, please kindly try to do it to check the outcome.

    Please feel free to share the updates with us.

    Best regards,

    Sylvie

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2019-10-14T16:51:25+00:00

    1. May I know if you run this cmdlet in PowerShell ISE as administrator? Yes
    2. When does this “Connect-MicrosoftTeams” problem happen? Does it happen after upgrading windows or PowerShell?. since beginning 

    Profile something needs to check with another team.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments