Datasheet

Part I: PowerShell for Exchange Fundamentals
16
In this example for Get-Help and for those that follow later in this section, input values are used
without specifying the parameter
Name . Because Name is a positional parameter (for position 1),
it is not required to be named as long as the input value appears on the command line in the first
position after
Get-Help .
Using the whole word
database produces a list of cmdlets that have at least the word at the beginning
of the noun name. But can you be sure that this is a list of every cmdlet possible that can be used to
manage databases? Luckily,
Get-Help supports the use of wildcards to search for matching cmdlet
names. To display a list of cmdlets that have the word
database anywhere in the cmdlet name, add the
* wildcard to the beginning and end of the name. This causes Windows PowerShell to return a list of all
possible matches as shown in Figure 1 - 12 .
Figure 1-12
This produces a comprehensive list of all available cmdlets that deal with the management of Exchange
databases. Now you would simply need to select the most likely cmdlet for accomplishing a given task
based on how closely the cmdlet name describes what the cmdlet does, then access the help information
for that cmdlet to learn how it is used. For example, if you want to learn how to create a mailbox
database, the cmdlet
New-MailboxDatabase is the most likely choice.
Another simple way to use
Get-Help is with the Role parameter. Exchange Server 2007 architecture
allows for the installation of different server roles on a given server to match the needs of an
organization s messaging system. There are five server roles, and by specifying a wildcard role value
with the
Role parameter, Get-Help displays a list of all cmdlets used to manage that role. For example,
to display all cmdlets used to manage the Mailbox server role, the command shown in Figure 1 - 13 would
be used.
c01.indd 16c01.indd 16 12/17/07 3:19:27 PM12/17/07 3:19:27 PM