Adding PowerShell commands for SharePoint

by Jul 31, 2020

The PowerShell Gallery provides easy access to additional PowerShell commands. For example, you can download and install the command extension for SharePoint and use PowerShell to automate your SharePoint sites:

Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser -Force 

# listing all new SharePoint commands
Get-Command -Module Microsoft.Online.SharePoint.PowerShell

There are many more PowerShell modules available on the PowerShell Gallery that deal with SharePoint. Find-Module helps you identify more useful resources:

Find-Module -Name *sharepoint*

Once you know the name of a module you find interesting, use Install-Module to download and install it, or use Save-Module to download it to a quarantine folder of your choice. This way, you can investigate the source code and determine whether you trust the code or not.

To find out more about PowerShell commands for SharePoint, visit the official help page:

Start-Process -FilePath

Twitter This Tip! ReTweet this Tip!