Datasheet

Part I: PowerShell for Exchange Fundamentals
12
For example, the Get-Service cmdlet is used to gather information about services and supports
wildcards for the
Name parameter used to identify those services. Using the asterisk wildcard you can
generate a list of all services with names that match the given pattern, as shown in Figure 1 - 6 for services
that begin with
Net .
Figure 1-6
Most cmdlets that use the
Identity parameter support wildcards as input. Also most cmdlets that use
the
Get verb and the Identity parameter support a default value of * for the Identity parameter.
This means that when you enter the cmdlet name without any parameters or values, it is implied you
want to gather information about all the possible matches.
For example, typing and entering
Get-Mailbox returns information about all mailbox - enabled accounts.
In large organizations this could result in thousands of matches so cmdlets like
Get-Mailbox limit the
results to 1,000 matches. This can be increased by including the
ResultSize parameter with an
appropriate higher value.
In Figure 1 - 7 ,
Get-Mailbox is used to retrieve all mailboxes in the organization.
Figure 1-7
c01.indd 12c01.indd 12 12/17/07 3:19:26 PM12/17/07 3:19:26 PM