Set up the Microsoft PowerShell for Windows operating system

Set up PowerShell on Windows

Documentation of isLucid is made to support you. Any new thing can be confusing. What is natural for us, does not necessary is understandable for everybody else in the world. So we encourage you to ask for help, clarifications and assistance if anything is unclear

On this page, you will find quick walk-through information helping you to set up PowerShell for windows computers. During this process you will:

  1. Steps in setting up PowerShell

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