How to Install / Update / Uninstall SharePoint Online PowerShell Module

SharePoint Online Management Shell is available as a module in PowerShell Gallery now! So, you can install it as a module directly from PowerShell instead of downloading and installing the MSI file! This makes it easier to update.

Install SharePoint Online PowerShell Module
To install the PowerShell Module for SharePoint Online, Open PowerShell as Administrator and enter:
Install-Module Microsoft.Online.SharePoint.PowerShell
install sharepoint online powershell module
Confirm the prompt and you'll see PowerShell module for SharePoint Online starts downloading and installing:
sharepoint online powershell module install
To re-install SharePoint Online PowerShell module, use: -Force switch:
Install-Module Microsoft.Online.SharePoint.PowerShell -force
Please note,  installing PowerShell module for SharePoint Online  doesn't install "SharePoint Online Management Shell" in your PC, but you can run any SharePoint Online cmd-lets directly in Windows PowerShell itself! Once installed, You can get list of cmdlets from the module using:
Get-command -Module Microsoft.Online.SharePoint.PowerShell
Get-command -Module Microsoft.Online.SharePoint.PowerShell

Update SharePoint online PowerShell module
To update the SharePoint Online PowerShell Module, use:
update-module microsoft.online.sharepoint.powershell

You can check the version of the installed SharePoint Online PowerShell module, use:
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name, Version

Uninstall SharePoint Online PowerShell Module
To remove the SharePoint Online PowerShell module, use:
Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell

To install SharePoint Online PnP PowerShell module, refer: Install SharePoint Online PnP PowerShell Module
How to Install / Update / Uninstall SharePoint Online PowerShell Module How to Install / Update / Uninstall SharePoint Online PowerShell Module Reviewed by Salaudeen Rajack on December 21, 2018 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.