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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access