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](http://microsoft365.today/wp-content/uploads/2020/05/Set-ExecutionPolicy-ExecutionPolicy-Unrestricted-1024x130.jpg)
SharePoint Online Management Shell
Install
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
![PowerShell Command showing Install Cmdlets for SharePoint Online](http://microsoft365.today/wp-content/uploads/2020/05/Install-Module-Name-Microsoft.Online.SharePoint.PowerShell-1024x93.jpg)
Uninstall
Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell
Update
Update-Module -Name Microsoft.Online.SharePoint.PowerShell
PnP PowerShell
Install
Install-Module SharePointPnPPowerShellOnline
![](http://microsoft365.today/wp-content/uploads/2020/05/Install-Module-SharePointPnPPowerShellOnline-1024x73.jpg)
Uninstall
Uninstall-Module -Name SharePointPnPPowerShellOnline
Update-Module SharePointPnPPowerShellOnline