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
Chapter 1: Getting Started with Windows PowerShell
13
Optional and Required Parameters
Cmdlets may have some parameters that are not required to be used each time the cmdlet is run and are
considered optional. You will find that most cmdlets have at least some optional parameters, especially
cmdlets that modify items, because not all properties of an item require changing at the same time. This
allows you to use only the optional parameters necessary to make the desired changes while leaving out
all other optional parameters.
Pages:
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44