Get-Command and Get-Help

PowerShell comes with numerous cmdlets, Microsoft released more than 500 just for SharePoint, and this number grows with each new release or service pack. Memorizing all these commands would be a challenge.

There are two cmdlets that come to the rescue and help administrators understand what the individual commandlets are. Type the following in your SharePoint PowerShell shell:

Get-Command

This command lists all available SharePoint commands. Because there are so many cmdlets, they cannot fit on one screen. To check only specific sets of commands related with one object—for example, Site—type the following:

Get-Command *Site*

The preceding command lists all SharePoint cmdlets that have Site in their name. Depending ...

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.