manual
36 www.microsoft.com/sharepoint
Figure 18: Windows PowerShell command
As you can see, Windows PowerShell is not just a new command shell. It is also, and
perhaps more importantly, a new scripting language. Windows PowerShell is installed
natively with over 100 core Windows cmdlets. The library of SharePoint Server 2010
cmdlets, which presently number over 300, will be installed on top of these core
cmdlets. The following two sample scenarios describe how an administrator might use
Windows PowerShell in SharePoint Server 2010 to help manage work efficiently.
To get a list of all cmdlets, you can use the built-in Windows PowerShell cmdlet
Get-Command. First, open the SharePoint 4.0 Management Console from the Start
menu under Administrative Tools. Type the following at the prompt and press ENTER:
Get-Command –noun sp*
After you have the complete list, you can page through it and look for commands that
interest you. After you find a command you would like more information about, you can
use the built-in Help for additional information. Type the following at the prompt and
press ENTER:
Get-Help <cmdlet>
This will give you the simple help. You can also add a –full or –detailed string to the
end of the command to get additional information.