Prev | Current Page 53 | Next

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

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


Mistyping a property name results in a failure to pass any objects down the pipeline stream without
reporting any error to the operator.
??‘
??‘
??‘
Part I: PowerShell for Exchange Fundamentals
26
Controlling Output
When you run a cmdlet in Windows PowerShell, the type of data displayed as output, if any, is
determined by the default format of the cmdlet. The output format is determined at the time the
cmdlet is created. Most cmdlets that use the Get verb have some form of default display formatting that
results in what the programmer determined the most useful information. For example, running the
Get-Mailbox cmdlet for a specific user results in the output shown in Figure 1 - 19 .
Figure 1-19
Figure 1-18
At times you need to see more specific information not included in the default format. By using the
pipeline operator to pass objects to the Format-List and Format-Table cmdlets you can control a
cmdlet ??™ s output to see either all properties or only those properties you specify.
Chapter 1: Getting Started with Windows PowerShell
27
Format - List
In the previous example Get-Mailbox displayed only those properties specified as default output for
the cmdlet. By passing the object to Format-List (or its alias name fl ) without any additional
parameters, all properties are displayed in a list format as shown in Figure 1 - 20 .


Pages:
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
Władysławowo noclegi pity pozycjonowanie bilety lotnicze świnoujście noclegi