September 21, 2020

Set up the Microsoft PowerShell for Windows operating system

by Gabby

Setting Up PowerShell

Set up PowerShell on Windows

 

By default, PowerShell comes pre-installed with the latest Windows OS versions. If you are already using PowerShell to manage different aspects of Azure or Office 365 subscriptions, most probably you are all set. To start:

  1. Start PowerShell CLE as administrator (you can do that by hitting the Windows keyboard button on your machine, entering PowerShell, and by selecting Run as an administrator)
  2. Install Teams PowerShell. Enter the command Install-Module MicrosoftTeams and hit enter
  3. Test connection if you can start the session successfully:
    $credential = Get-Credential
    Import-Module MicrosoftTeams
    $sfboSession = New-CsOnlineSession -Credential $credential
    Import-PSSession $sfboSession
  4. Connect to Microsoft Teams:
    Connect-MicrosoftTeams -Credential $credential
If you have trouble logging in, it might be due to Multi-Factor Authenticator.

To log in with MFA enabled, please start and run PowerShell ISE and use the following command:

$acctName=”[email protected]” $orgName=”company.domain” Import-Module MicrosoftTeams Connect-MicrosoftTeams

Please have the device on which you confirm your login, e.g mobile phone with Microsoft Authenticator App

Still have open questions? Ask away!

    Get the latest updates mailed to you

      By clicking subscribe, you are consenting to allow Lucid to store and process your personal information to provide you the service requested

      Sing up to increase your productivity!

       

      You have successfully subscribed to the newsletter

      There was an error while trying to send your request. Please try again.

      isLucid will use the information you provide on this form to be in touch with you and to provide useful content.