Teams | Log in with PowerShell

Tutorials / MSTeams /
  • Teams | Log in with PowerShell
  • Teams | Log in with PowerShell

    Disclaimer: Run PowerShell at your own risk; the information below is to help. Please do your own research and check any errors you may receive.

    1. Open PowerShell as Administrator

    Search for PowerShell and select Run as Administrator

    2. Install the Teams Module

    Enter this command to get the MicrosoftTeams module from an online repository:

    Install-Module -Name MicrosoftTeams

    • Accept the repository changes if required.

    3. Import the Teams Module

    Enter this command to retrieve PowerShell modules installed on your computer:


    4. Set the Execution Policy

    Enter this command to set the execution policy to require all scripts and configuration files downloaded from the Internet are signed by a trusted publisher:

    Set-ExecutionPolicy RemoteSigned

    Enter a for "Yes to All"

    5. Import the Teams Module

    Enter this command to add the MicrosoftTeams module to the current session:

    Import-Module MicrosoftTeams

    6. Run the "Connect-MicrosoftTeams" cmdlet

    Enter this command to authenticate your account for use with cmdlets from the MicrosoftTeams module:


    7. Sign in to your account

    Enter your account and password:

    Download the Microsoft Authenticator app for your iOS or Android device and use it to sign in.

    8. You are now logged in

    You are now logged into Teams via PowerShell. You can now run Get cmdlets for setting up your PSTN and your routes.

    For more Microsoft Teams Guides, click here!

    Voxtelesys Portal Guides here!