

Here are the commands for all the services in a single block when you use the Azure Active Directory PowerShell for Graph module. To connect to Microsoft Teams clouds other than Worldwide, see Connect-MicrosoftTeams.Īzure Active Directory PowerShell for Graph module when using just a password If you're using the latest Teams PowerShell public release, you don't need to install the Skype for Business Online Connector. Skype for Business Online Connector is currently part of the latest Teams PowerShell module. Connect-MsolService -Credential $credential Or if you're using the Microsoft Azure Active Directory Module for Windows PowerShell module, run this command.

Run this command to connect to Azure AD by using the Azure Active Directory PowerShell for Graph module. Run this command and enter your Microsoft 365 work or school account credentials. Set-ExecutionPolicy RemoteSignedĬonnection steps when using just a passwordįollow these steps to connect to all the services in a single PowerShell window when you're using just a password for sign-in. Run the following command in an elevated PowerShell session (a PowerShell session that you Run as administrator). PowerShell must be configured to run signed scripts for Exchange Online, Defender for Office 365, and Microsoft Purview compliance.

Notes provide links to articles about connecting to the other Microsoft 365 clouds. This article currently only contains the commands to connect to the Worldwide (+GCC) cloud.
