First install the Windows Management Framework 5.1 https://www.microsoft.com/en-us/download/details.aspx?id=54616
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.
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-03-at-21.34.53-1024x588.jpg)
Now, if you want to connect to “Connect with the Microsoft Azure Active” do this:
Set-ExecutionPolicy RemoteSigned
Install-Module MSOnline
If you have a warning that inform you that you need to update, use this command:
Install-Module MSOnline -Force
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-21.48.08-1024x206.jpg)
In the case of error like this use this command:
[Net.ServicePointManager]::SecurityProtocol =[Net.SecurityProtocolType]::Tls12
WARNING: Unable to download from URI ‘https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409’ to ”.
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Get-PackageProvider : Unable to find package provider ‘NuGet’. It may not be imported yet. Try
‘Get-PackageProvider -ListAvailable’.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7415 char:30
… tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet …
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-03-at-21.39.30.jpg)
Now run the command
Connect-MsolService and fill with your ID and PW.
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-03-at-21.41.08.jpg)
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.
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-03-at-22.05.12-1024x538.jpg)
Now run the PowerShell with Administrative Rights
Run this command
Set-ExecutionPolicy RemoteSigned
import-Module SkypeOnlineConnector
$sfbSession = New-CsOnlineSession
Import-PSSession $sfbSession
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot_2020-03-03_at_22_28_399-scaled.jpg)
SharePoint Online
Run this command
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Connect-SPOService -Url https://<domainhost>-admin.sharepoint.com
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-03-at-21.57.36-scaled.jpg)
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
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-21.55.50.jpg)
and then
Import-PSSession $exchangeSession -DisableNameChecking
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-21.58.38.jpg)
Second way
Install the module
Install-Module -Name ExchangeOnlineManagement
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-22.08.43-1024x181.jpg)
Run this command:
Connect-ExchangeOnline
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-22.07.48.jpg)
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
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-22.39.39.jpg)
Import-PSSession $SccSession -Prefix cc
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-22.42.15.jpg)
To list all SCC command, use this command:
Get-Command -Module tmp_lya*
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-22.43.24.jpg)
TEAMS
Install-Module MicrosoftTeams
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-23.25.57.jpg)
Connet to Teams:
Connect-MicrosoftTeams
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-23.28.48.jpg)
Get the commands…
Get-Command -Module MicrosoftTeams
![](https://marcoschiavon.net/wp-content/uploads/2020/03/Screenshot-2020-03-04-at-23.29.46.jpg)