List All SharePoint 2010 PowerShell Commands

In order to master SharePoint 2010, you will have to get comfortable utilizing PowerShell (aka SharePoint 2010 Management Shell). There are so many commands (or command-lets as they are called) that interact with SharePoint that it makes it nearly impossible to remember them all. Use this PowerShell command to output a list of all cmdlets that are found within the SharePoint 2010 namespace:

Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | format-table name > C:\SP2010_PowerShell_Commands.txt

If you would like a little more detail, then try this one:

Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | select name, definition | format-list > C:\SP2010_PowerShell_Commands.txt

Note: You may also type gcm as the alias for Get-Command.

avatar

About Adam Preston

Adam is a Senior Consultant specializing in the administration and configuration of SharePoint. He holds several SharePoint certifications, including MCITP: SharePoint Administrator 2010. He is the Vice President of the Richmond SharePoint Users Group and active throughout the SharePoint community via Twitter (@_apreston) and MSDN Forums.
This entry was posted in PowerShell, SharePoint 2010 and tagged , . Bookmark the permalink.

7 Responses to List All SharePoint 2010 PowerShell Commands

  1. Pingback: List All SharePoint 2010 PowerShell Commands « SP2010 Blog

  2. avatar Lakshmi says:

    Plz list all the powershell commands which is used for sharepoint administration 2010.There are more than 500 cmdlets it seems. Explain each command briefly.It is useful for Begineers like me.

    Thank u

    • avatar Adam Preston says:

      I’m sorry; it would take quite awhile to generate such a list and description. Plus, many sites already have this. What you should do is use PowerShell to learn more about each cmdlet. At the command window type, help to get detailed information about that particular command. (ex. help Backup-SPFarm)

  3. avatar Jason Miller says:

    @Lakshmi: Use the command “get-help -detailed” for a good description of the command. For instance, to learn more about Install-SPSolution, use:

    get-help install-spsolution -detailed

    Also, be sure to use the tab completion feature. If you start typing a command, hit “tab” to have powershell attempt to complete the command for you. This is useful for when you’re trying out commands for a task or having trouble remembering the complete name of the command.

  4. Pingback: List All SharePoint 2010 PowerShell Commands « Rana Omer Hussain's RegEdit

  5. avatar Palani says:

    Hi Adam,

    This is really very useful. Thanks for Sharing….

  6. avatar Nishal says:

    Hi,

    I have created variation labels in my sharepoint site. I need to create hierarchy for those sites. Is there a powershell command which allows us to create hierarchies for the variation labels.
    Since my sharepoint page (site settings->variation labels) is not working, I am looking for PowerShell commands.
    Thanks in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>