Install all Office 365 PowerShell Modules

Office 365 includes a wide variety of cloud services like Azure AD, Exchange Online, SharePoint Online, Security and Compliance Center, Skype for Business, and Teams. To manage multiple Office 365 services, you need to navigate different admin portals as each service has different portals.

Office 365 PowerShell is a powerful tool that compensates the Microsoft 365 admin center. With PowerShell, you can manage all Office 365 services significantly faster than the admin portal. Each Office 365 service has its own PowerShell module, which allows you to administrate all services under a single PowerShell window.

To utilize Office 365 services through PowerShell, first you need to install the required module. Let’s see the available Office 365 services’ PowerShell modules one by one.

 

You can install all Office 365 PowerShell modules using single script. You can Download the script from TechNet Gallery

 

1.Exchange Online (Exchange Online Remote PowerShell Module)

Exchange Online PowerShell allows you to manage your Exchange Online settings from the command line. If you are using MFA enabled account, you need to install Exchange Online Remote PowerShell Module. For non-MFA account, you do not need any special module.

 

2.Azure AD (AzureAD and MSOnline Module)

Office 365 PowerShell allows you to connect to your Office 365 organization to perform administration task from the command line

1.AzureAD V1 – Microsoft Azure Active Directory Module for Windows PowerShell

2.AzureAD V2 – Azure Active Directory PowerShell for Graph

 

2.1. AzureAD V1 (MSOnline Module)

Cmd-lets in the Microsoft Azure Active Directory Module for Windows PowerShell have ‘Msol’ in their cmd-let name like Get-MsolUser, Get-MsolDomain, etc.

Following cmd-let will install Azure AD Msol module.

 

2.2. AzureAD V2 (AzureAD Module)

Cmd-lets in the Azure Active Directory PowerShell for Graph module have ‘AzureAD’ in their cmd-let name like Get-AzureADUser, New-AzureADPolicy, etc.

 

3.SharePoint Online (SharePoint Online PowerShell Module)

SharePoint Online PowerShell module allows you to manage sites, site groups and users, etc. To manage SharePoint Online through PowerShell, you must install SharePoint Online PowerShell Module.

Following cmd-let will install SharePoint Online PowerShell Module

 

4.Security and Compliance Center (Exchange Online Remote PowerShell Module)

Security and Compliance Center PowerShell is the administrative interface that allows you to perform compliance searches and configure access to Security and Compliance Center.

If the account is MFA enabled, you need to install Exchange Online PowerShell Module in order to access Security and Compliance Center. For non-MFA account, you do not need any special module.

 

5.Teams (Microsoft Teams PowerShell Module)

Microsoft Teams PowerShell Module allows you to create and manage Teams. To connect Teams through PowerShell, you need to install Microsoft Teams PowerShell Module.

You can install Microsoft Teams PowerShell Module using the below cmd-let

 

6.Skype (Skype for Business Online Connector Module)

Skype for Business Online PowerShell allows you to manage policies and meeting settings. To connect Skype for Business Online PowerShell, you need to install Skype for Business Online Connector Module.

You can download and install the module using below link.

https://download.microsoft.com/download/2/0/5/2050B39B-4DA5-48E0-B768-583533B42C3B/SkypeOnlinePowerShell.Exe

 

Manually installing each module is a tedious task. Don’t worry! We have an All-in-One PowerShell script which, can install all Office 365 PowerShell modules for you.

 

Install all Office 365 PowerShell Modules Using Script:

This PowerShell script installs all Office 365 PowerShell modules with the single cmd-let. Additionally, it connects to Office 365 through PowerShell. You can Download the script from TechNet gallery.

Script Highlights:

  • Modules required for Office 365 services are automatically downloaded and installed upon your confirmation.
  • You can connect to one or more Office 365 services via PowerShell using a single cmdlet.
  • You can connect Office 365 services with MFA enabled account.
  • For non-MFA account, you don’t need to enter credential for each service. The credential popup will be prompted only once.
  • The script is scheduler friendly. i.e., credentials can be passed as a parameter instead of saving inside the script.
  • You can disconnect all service connections using a single cmdlet.

 

I hope this blog can help you to manage Office 365 PowerShell modules. If you face any issues during connection, share with us through the comment section.