Datasheet

Chapter 1: Getting Started with Windows PowerShell
15
The solution is to provide enough of the parameter name to make it unique, in this case posta would be
enough to disambiguate
PostalCode from PostOfficeBox .
Discovering Commands and Getting Help
Now that you have learned the basic concept of using cmdlets, we ll discuss how to go about
discovering cmdlets and learning how to use them.
Even with more than 500 cmdlets in Exchange Management Shell, finding the right cmdlet to accomplish
a task is easier than you might think. Earlier in this section you learned that a cmdlet s name is typically
descriptive of the cmdlet s purpose. Using this knowledge along with some simple commands, you can
quickly and easily find any cmdlet.
Using Get - Help to Find Cmdlets
Windows PowerShell provides powerful built - in help information available directly from the command
line. Most cmdlets have some level of help content stored in a cmdlet help file that can be accessed from
the command line using the
Get-Help cmdlet. You don t need to know where the help file is or how to
get to help information for a specific cmdlet; PowerShell works out these details as part of built - in help.
Besides displaying cmdlet help information,
Get-Help is a powerful tool for finding cmdlets based
on ambiguous name matching. When supplied with a specific and unique cmdlet name as input to the
Name parameter, Get-Help displays the help information for that cmdlet. But if the input is ambiguous,
Get-Help displays a list of all cmdlets that are a close match.
Using this approach you simply need to supply enough of the possible cmdlet name to generate a list
of cmdlets from which to choose. For example, say you would like to learn about cmdlets that are used
for managing Exchange databases but you don t know the exact names, or even which cmdlets might
be available. The command shown in Figure 1 - 11 generates a list of cmdlets that contain the word
database .
Figure 1-11
c01.indd 15c01.indd 15 12/17/07 3:19:27 PM12/17/07 3:19:27 PM