Office 365 PowerShell: Test-O365Connections cmdlet
This CMDLET is design to test if you are connected to specify O365 services. You can test your connections to all, few or single service in O365 by using Parameters. By default it will put on screen result and return hash table with results.
Available services for now:
- MSOL
- SharePoint Online
- Exchange Online
- Microsoft TeamsSecurity & Compliance Center
- Skype for Bussines Online
- Azure Active Directory
- Microsoft Teams
It can test single service, few or all.
You can you this function whit one or few parameters which are describe below.
MSOL
Check if connected to MSOL.
SPO
Check if connected to SharePoint Online.
ExO
Check if connected to Exchange Online.
SCC
Check if connected to Security & Compliance Center.
SfB
Check if connected to Skype for Business Online.
Teams
Check if connected to Teams Online.
AAD
Check if connected to Azure Active Directory.
All
Test connections to all services.
Quiet
This will turn off screen results.
NoResults
This will disable returning hash table results
Samples
And here are some examples of using it:
Test-O365Connections -All
This will test your connestions to all services.
Test-O365Connections -MSOL -SPO -AAD -NoResults
This will test your connections to MSOL, SharePoint Online and Azure AD. But will result just on screen.
Test-O365Connections -MSOL -SPO -AAD -Quiet
This will test your connections to MSOL, SharePoint Online and Azure AD. But will return only hash table whit results.