This is the series of PowerShell Scripts in SharePoint 2010. Learn a cmdlet (command-let) a day.
Cmdlet(Command-let)
Cmdlet’s are compiled commands installed with PowerShell. When you start “SharePoint 2010 Management PowerShell”, the console starts with pre-loaded cmdlets.
Day 1:
Get-Command
Get-Command cmdlet will return all commandlets registered with PowerShell.
-Module
Passing Module value with Get-Command will return only the cmdlet’s available on the specific Module.
Syntax:
Get-Command -Module <<Module Name>>
Example:
Get-Command -Module Microsoft.SharePoint.PowerShell
Leave a Reply