One of the first things I do when I set up a new machine is install all of the PowerShell modules I need to manage Office 365. Since there are so many different modules, and they update so often, I put them all in this blog post so you (and I) have one place to go to to grab them I’ll. I’ll also keep the versions updated so you’ll know if you need to update them.
For each of the modules I have listed the official page if there is one, and a PowerShell command you can run to install it from the PowerShell Gallery.
To see which modules you have installed and which version they are run this:
Get-InstalledModule | select name, version
To suppress the warning you get when installing from the PowerShell Gallery, run this:
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
To update to latest version of a module use the Update-Module cmdlet. You can use the technique in this blog post, PowerShell to Update your PowerShell Modules, to see which version you have and whether it's the latest.
Official Microsoft Modules
Sign-in assistant (needed for MSOL and AzureAD Modules)
Microsoft Online (1.1.183.66) Original Tenant Directory Management Prefix: MSOL Install-Module -Name MSOnline
AzureAD (2.0.2.140) Newer Tenant Directory Management Prefix: AzureAD Install-Module -Name azuread
AzureADPreview (2.0.2.138) Latest Tenant Directory Management Prefix: AzureAD Install-Module -Name AzureADPreview
SharePoint Online (16.0.21909.12000) Manage SharePoint sites and related services Prefix: SPO Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Teams Microsoft Teams Management Preview (0.9.6) (uses Graph beta/preview APIs) Prefix: Team Install-Module -Name MicrosoftTeams -RequiredVersion 0.9.6
Microsoft Teams Management (3.0.0)(uses 1.0 Graph API) Prefix: Team Install-Module -Name MicrosoftTeams
Skype for BusinessNo PowerShell module install from GalleryManage Skype for Business Online with Office 365 PowerShell
Exchange Online Management (2.0.5)Manage Exchange Online without PSRemotingPrefix: EXOInstall-Module -Name ExchangeOnlineManagementConnect to Exchange Online PowerShell
PowerApps and Flow for Makers (1.0.20)User management for Flow and PowerAppsPrefix: PowerApp (for most cmdlets)Install-Module -Name Microsoft.PowerApps.PowerShell
PowerApps and Flow for Admins (2.0.139)Tenant admin managent of Flow and PowerAppsPrefix: AdminPowerApp (for most cmdlets)Install-Module -Name Microsoft.PowerApps.Administration.PowerShell –AllowClobber
Graph SDK (1.9.0)Beta for Microsoft GraphPrefix: MGInstall-Module Microsoft.Graph
3rd Party Installs
PnP.PowerShell (1.8.0)Invaluable Module for working with SPO and M365Install-Module -Name PnP.PowerShell
SharePoint PnP PowerShell (3.29.2101.0) (Final Version)Old version. Upgrade to PnP.PowerShellInstall-Module -Name SharePointPnPPowerShellOnline
Last Updated 12/12/2021
I hope this comes in handy. Let me know if there are any other modules I should consider adding.
tk
ShortUrl: https://www.toddklindt.com/POSHOffice365Modules