Prev | Current Page 35 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"

In the following example the first command uses the Set-User cmdlet to set the
Manager attribute on user account John Doe to his manager Jane Doe . -ma is enough information for
the shell to interpret the parameter name Manager so the command succeeds. In the second command,
-po is being used to refer to the PostalCode parameter. However, -po is ambiguous and also matches
parameter PostOfficeBox . In this case the command fails with the error shown Figure 1 - 10 .
Figure 1-10
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.


Pages:
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Master Blaster Apelacje sejmowe 2 fajna muza kamery przemysłowe Madredeus