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
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 .
Pages:
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48