Install and Configure PowerShell for Office 365

Download this episode

Download Video


In this show, I show you how to install the Office 365 PowerShell components, how to connect to your account online, and a few tips along the way. This show is the foundation to you automating things with PowerShell.We also cover SharePoint Online in a little more depth because it is my favorite. 

Cmdlets covered:

  • Import-Module MSOnline
  • Connect-MsolService 
  • Import-Module LyncOnlineConnector
  • New-CsOnlineSession 
  • Import-Module Microsoft.Online.Sharepoint.PowerShell
  • Connect-SPOService

Link to the Office365 PowerShell getting started guide.
If you are brand new to PowerShell and need to learn more, I have a PowerShell beginners video.

Video on installing the Patterns and Practices PowerShell for SharePoint Online.
For all of your Azure, SharePoint or Office 365 consulting needs check out Bold Zebras.



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Rob de Jong


      I noticed you are using the older MSOnline PowerShell module in your examples. It may be useful to start using the newer Azure Active Directory PowerShell V2 module instead, as we will begin deprecating the MSOnline module when we have migrated the functionality of the MSOnline module to the newer module – currently planned for the Spring of 2017.


      Rob de Jong

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.