(See Figure 14 - 18 .)
Lastly, to export data from this cmdlet or from any cmdlet, pipeline the cmdlet to export-csv and
specify the .csv filename. The output is redirected to the .csv file and will not display on the screen.
From there, the .csv file can be loaded into Excel or programmatically inserted in SQL through a DTS
package or via Service Broker.
Using Get - Message
The Get-Message cmdlet provides the ability for the Exchange administrator to view the message
queue through PowerShell. Imagine this as your scriptable queue viewer across the enterprise. The
cmdlet runs against a Hub or Edge server and can be used to look at the queue of a remote server. If no
parameters are specified, the cmdlet attempts to run against the local machine. Also by default the result
size is limited to 1,000 entries.
Chapter 14: Troubleshooting Exchange Issues
415
The following is a list of parameters available for this cmdlet:
BookmarkIndex : Used to specify a position from within the result set that the displayed
results are sent to the output device. This parameter cannot be used in conjunction with the
BookmarkObject parameter.
BookmarkObject : Similar to BookmarkIndex but is used to specify an object in lieu of a
position.
Filter : This parameter is used to specify what parameter is used to filter the query.
Pages:
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570