The term 'Connect-MicrosoftTeams' is not recognized as the name of a cmdlet,

Hi here,

When try install module I no see some error or msg, but 'connect' command still not work. Any ideas?

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

Version    Name                                Repository           Description

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

1.0.2      MicrosoftTeams                      PSGallery            Teams Cmdlets module

PS C:\WINDOWS\system32> Install-Module 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


PS C:\WINDOWS\system32>

Best regards,

Andrey

Hello Andrey,

 

Thanks for your post in the forum. It’s my pleasure to help you on it. From the information you provided, the module has been installed successfully, but it has some problems when connecting to Microsoft Teams services. The possible reason is that it is related to your PowerShell environment. Please run the following cmdlet and see whether it works: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

 

If the issue persists, in order to look into the issue further, please provide the following information:

 

1. Please run the following command to get the store info: $env:PSmodulepath -split ";"

2. The Windows version. Press Win + R and type winver. Capture a screenshot for your reference.

3. Try to run the cmdlets in my previous reply via the PowerShell ISE running in Administrator mode. Right click on the PowerShell button and choose Run ISE as Administrator.

4. If possible, please create a new Windows profile and do the same tests via the new profile. Note: Don’t delete the old profile.

 

Regards,

Rick

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

* Beware of scammers posting fake support numbers here.

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello Andrey,

Any update on it? 

Regards,

Rick

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

* Beware of scammers posting fake support numbers here.

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 19, 2021 Views 3,879 Applies to: