Prev | Current Page 641 | Next

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

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


To get a list of all the attributes for all of the mailboxes in the Exchange organization you would simply run:
Get-Mailbox | Export-CSV C:\data\allmailboxes.csv
Most likely you would select specific objects to include in the export, which you could do by using
select-object before the Export-Csv cmdlet.
A number of excellent third - party products can be used to export data. Most of these third - party
products function just like Export-CSV and Out-File in that they allow for exporting data by piping
the data at the command line to the third - party cmdlets.
Chapter 16: Reporting, Maintenance, and Administration
469
One note when working with this: make sure that you are exporting data in the right format. Many of
the mailbox sizes and statistics are typed as byte quantified size and most cmdlets that you would
pipe this data to would expect the data to be a string or an integer. If these controls receive the byte
quantified size typed data, they can ??™ t properly format it. You can find an example of working with
byte quantified size values and third - party products later in this chapter.
Sending Email from PowerShell
When writing a monitoring PowerShell script it is essential for the script to be able to email an alert
when something falls outside of a normal condition.


Pages:
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653
salon kosmetyczny kraków kasyno torpado out of home advertising zaproszenia ślubne