-->
This article explains how to install the Microsoft Teams PowerShell module usingPowerShellGet. These instructions work on Azure Cloud Shell, Linux, macOS, and Windows platforms.
If the user doesn't yet have a license for Teams as part of their organization's Microsoft 365 plan, they will be routed to the Microsoft Teams Exploratory experience for free until next agreement anniversary or renewal on or after January 2021. Learn more about Microsoft Teams Exploratory experience. Download and install Teams on my Windows PC Before you download and install Microsoft Teams, check if you already have it on your Windows computer. Go to the Start menu and select Microsoft Teams. Microsoft Teams is your hub for teamwork, which brings together everything a team needs: chat and threaded conversations, meetings & video conferencing, calling, content collaboration with the power of Microsoft 365 applications, and the ability to create and integrate apps and workflows that your business relies on. Custom backgrounds gallery for Microsoft Teams. Custom backgrounds in Microsoft Teams helps show off your own personal style and make meetings more fun and inclusive! When joining a Teams meeting, you want the focus on you, not other stuff in the room.
Requirements
Download Microsoft Teams - Microsoft Teams is an entirely new experience that brings together people, conversations and content—along with the tools that teams need—so they can easily.
Teams PowerShell requires PowerShell 5.1 or higher on all platforms. Install the latest version of PowerShell available for your operating system.
Note
For the best experience, we recommend that you use PowerShell 5.1.
Install the Teams PowerShell module
Note
For the best experience, use either General Availability (GA) or Public Preview modules - not both. They're not intended to work together.
Use the PowerShellGet cmdlets to install the Teams PowerShell module. Installing the module for all users on a system requires elevated privileges. Start the PowerShellsession using Run as administrator in Windows or use the sudo
command on macOS or Linux: Dont starve: shipwrecked.
By default, the PowerShell Gallery (PSGallery) isn't configured as a trusted repository for PowerShellGet. The first time you use the PSGallery, you'll see the following message:
Answer Yes or Yes to All to continue with the installation.
Sign in
To start working with Teams PowerShell, sign in with your Azure credentials.
Note
If you're using the latest Teams PowerShell public preview release, you don't need to install the Skype for Business Online Connector.
Sign in using MFA and modern authentication
If your account uses multi-factor authentication, use the steps in this section.
Update Teams PowerShell
To update Teams PowerShell, open a new elevated PowerShell command prompt and run the following:
Download Microsoft Teams Recording
Warning
If Teams PowerShell has already been imported into your PowerShell session, updating the module will fail. Tyranny - gold edition. Close PowerShell and re-open a new elevated PowerShell session.
Uninstall Teams PowerShell
To uninstall Teams PowerShell, open a new elevated PowerShell command prompt and run the following:
Warning
Download Microsoft Teams For Mac
If Teams PowerShell has already been imported into your PowerShell session, uninstalling the module will fail. Close PowerShell and re-open a new elevated PowerShell session.
Install Teams PowerShell public preview
Note
If you're using the Public Preview version of Teams PowerShell, we strongly recommend that you first uninstall Skype for Business Online Connector.
Installing the Teams PowerShell public preview module for all users on a system requires elevated privileges. Start the PowerShellsession using Run as administrator in Windows or use the sudo
command on macOS or Linux.
If you're using PowerShell 5.1, you must update the PowerShellGet Case: animatronics. module beforehand. After you update PowerShellGet, close and reopen an elevated PowerShell session to ensure that the latest PowerShellGet is loaded.
To install Teams PowerShell public preview, run the PowerShell command below.
This article explains how to install the Microsoft Teams PowerShell module usingPowerShellGet. These instructions work on Azure Cloud Shell, Linux, macOS, and Windows platforms.
If the user doesn't yet have a license for Teams as part of their organization's Microsoft 365 plan, they will be routed to the Microsoft Teams Exploratory experience for free until next agreement anniversary or renewal on or after January 2021. Learn more about Microsoft Teams Exploratory experience. Download and install Teams on my Windows PC Before you download and install Microsoft Teams, check if you already have it on your Windows computer. Go to the Start menu and select Microsoft Teams. Microsoft Teams is your hub for teamwork, which brings together everything a team needs: chat and threaded conversations, meetings & video conferencing, calling, content collaboration with the power of Microsoft 365 applications, and the ability to create and integrate apps and workflows that your business relies on. Custom backgrounds gallery for Microsoft Teams. Custom backgrounds in Microsoft Teams helps show off your own personal style and make meetings more fun and inclusive! When joining a Teams meeting, you want the focus on you, not other stuff in the room.
Requirements
Download Microsoft Teams - Microsoft Teams is an entirely new experience that brings together people, conversations and content—along with the tools that teams need—so they can easily.
Teams PowerShell requires PowerShell 5.1 or higher on all platforms. Install the latest version of PowerShell available for your operating system.
Note
For the best experience, we recommend that you use PowerShell 5.1.
Install the Teams PowerShell module
Note
For the best experience, use either General Availability (GA) or Public Preview modules - not both. They're not intended to work together.
Use the PowerShellGet cmdlets to install the Teams PowerShell module. Installing the module for all users on a system requires elevated privileges. Start the PowerShellsession using Run as administrator in Windows or use the sudo
command on macOS or Linux: Dont starve: shipwrecked.
By default, the PowerShell Gallery (PSGallery) isn't configured as a trusted repository for PowerShellGet. The first time you use the PSGallery, you'll see the following message:
Answer Yes or Yes to All to continue with the installation.
Sign in
To start working with Teams PowerShell, sign in with your Azure credentials.
Note
If you're using the latest Teams PowerShell public preview release, you don't need to install the Skype for Business Online Connector.
Sign in using MFA and modern authentication
If your account uses multi-factor authentication, use the steps in this section.
Update Teams PowerShell
To update Teams PowerShell, open a new elevated PowerShell command prompt and run the following:
Download Microsoft Teams Recording
Warning
If Teams PowerShell has already been imported into your PowerShell session, updating the module will fail. Tyranny - gold edition. Close PowerShell and re-open a new elevated PowerShell session.
Uninstall Teams PowerShell
To uninstall Teams PowerShell, open a new elevated PowerShell command prompt and run the following:
Warning
Download Microsoft Teams For Mac
If Teams PowerShell has already been imported into your PowerShell session, uninstalling the module will fail. Close PowerShell and re-open a new elevated PowerShell session.
Install Teams PowerShell public preview
Note
If you're using the Public Preview version of Teams PowerShell, we strongly recommend that you first uninstall Skype for Business Online Connector.
Installing the Teams PowerShell public preview module for all users on a system requires elevated privileges. Start the PowerShellsession using Run as administrator in Windows or use the sudo
command on macOS or Linux.
If you're using PowerShell 5.1, you must update the PowerShellGet Case: animatronics. module beforehand. After you update PowerShellGet, close and reopen an elevated PowerShell session to ensure that the latest PowerShellGet is loaded.
To install Teams PowerShell public preview, run the PowerShell command below.
Note
You can find the latest preview version at PowerShell Gallery or in PowerShell by running 'Find-Module MicrosoftTeams -AllowPrerelease -AllVersions'
Next Steps
Now you're ready to manage Teams using Teams PowerShell. See Managing Teams with Teams PowerShell to get started.