PowerShell is a powerful tool for automation, and many of Office 365’s features can only be configured in PowerShell. In this article, you will learn how to connect to the various services within Office 365 including Azure Active Directory, Exchange, SharePoint, Skype for Business, and Microsoft Teams.

Check out the full post over at the Varonis Inside Out Security Blog:
How to Connect to Office 365 PowerShell