Tuesday, June 25, 2024
HomeMicrosoft 365How to Install Uninstall or Update Cmdlets for SharePoint Online

How to Install Uninstall or Update Cmdlets for SharePoint Online

By default, you are not allowed to run scripts on a Windows computer, so before you can run any scripts you must allow that.

Set-ExecutionPolicy -ExecutionPolicy  Unrestricted
PowerShell command showing Set-ExecutionPolicy

SharePoint Online Management Shell

Install

 Install-Module -Name Microsoft.Online.SharePoint.PowerShell
PowerShell Command showing Install Cmdlets for SharePoint Online

Uninstall

Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell

Update

Update-Module -Name Microsoft.Online.SharePoint.PowerShell

PnP PowerShell

Install

Install-Module SharePointPnPPowerShellOnline

Uninstall

Uninstall-Module -Name SharePointPnPPowerShellOnline

Update-Module SharePointPnPPowerShellOnline

Most Popular