Prev | Current Page 81 | Next

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

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

com
The Wrap parameter can be used independent of the AutoSize parameter. Format-Table also supports
wildcards when specifying property names.
At times you may find displaying information in table format unworkable, such as when the number of
properties you want to display do not fit well in the width of the screen. Using Format-List (or its alias
fl ) you can change the default output of a cmdlet to list form and specify the property names to
display. To change the information displayed in the preceding example to list form, use the command
shown here:
[PS] C:\ > get-mailbox johdoe | Format-List name, alias, database, primarysmtpaddr
ess
Name : John Doe
Alias : johdoe
Database : MB001\First Storage Group\Mailbox Database
PrimarySmtpAddress : johdoe@exchangeexchange.com
Format-List also supports wildcards to specify property names. To display all properties
use Format-List followed by * .
After applying formatting, you may want to direct output to a file for reporting purposes. Using
Out-File at the end of the pipeline stream directs the output to the file specified by the FilePath
parameter. To write the output of the information in the preceding example to a text file called
johndoembx.txt , use the following command:
[PS] C:\ > get-mailbox johdoe | Format-List name, alias, database, primarysmtpaddr
ess | Out-File -FilePath c:\johndoembx.


Pages:
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
wycieczki do Norwegii skarpetki narciarskie męskie zarządzanie sprzedażą online loan for bad credit remont warszawa