Connect to whole Microsoft’s cloud services. Microsoft 365 Admin Center, Azure Active Directory, Skype for Business Online,Teams, SharePoint Online, Security & Compliance Center, Exchange Online – Updated!

Microsoft 365 admin center

First, download “Microsoft Online Services Sign-In Assistant for IT Professionals RTW” from this link:   https://www.microsoft.com/en-us/download/details.aspx?id=41950   Install it.

Now, if you want to connect to “Connect with the Microsoft Azure Active” do this:

Set-ExecutionPolicy RemoteSigned


Now run the command

Connect-MsolService and fill with your ID and PW.

Install-Module MSOnline

If you have a warning that inform you that you need to update, use this command:

Install-Module MSOnline -Force

Skype for Business Online

First, download “Skype for Business Online, Windows PowerShell Module” from this link:   https://www.microsoft.com/en-us/download/details.aspx?id=39366  Install it.

Now run the PowerShell with Administrative Rights

Run this command

Set-ExecutionPolicy RemoteSigned

import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession
Import-PSSession $sfbSession

SharePoint Online

Run this command

Install-Module -Name Microsoft.Online.SharePoint.PowerShell

Connect-SPOService -Url https://<domainhost>-admin.sharepoint.com

Exchange Online

First way

Run this command:

$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://outlook.office365.com/powershell-liveid/” -Credential $credential -Authentication “Basic” -AllowRedirection

and then

Import-PSSession $exchangeSession -DisableNameChecking


Second way

Install the module

Install-Module -Name ExchangeOnlineManagement

Run this command:

Connect-ExchangeOnline

Security & Compliance Center

Run this command:

$SccSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $credential -Authentication “Basic” -AllowRedirection


Import-PSSession $SccSession -Prefix cc

To list all SCC command, use this command:

Get-Command -Module tmp_lya*

TEAMS

Install-Module MicrosoftTeams


Connet to Teams:

Connect-MicrosoftTeams

Get the commands…

Get-Command -Module MicrosoftTeams