Get-ExchangeServer | where {$_.IsMemberOfCluster -
eq???Yes???} or Get-ExchangeServer | where {$_.IsMailboxServer -eq???True???} . This performs
the health check only on clusters within the organization. If you wanted to check on a specific site, after,
say, a power outage, you could change the scope to include the site with the Get-ExchangeServer . In
Exchange 2007 sites are now defined by the AD site boundary. Therefore all site names come from the
AD sites and Services naming. To check on all Exchange servers in New York, with a site name of NY , the
Get-ExchangeServer portion would be changed to Get-ExchangeServer | where {$_.Site -eq
???exchangeexchange.local/Configuration/Sites/NY???} . The flexibility of Test-ServiceHealth is
not in the cmdlet itself, but in the pipelined input passed to it.
Figure 14-3
Chapter 14: Troubleshooting Exchange Issues
393
Determining Exchange System Health
This section covers the following cmdlet:
Test-SystemHealth
This PowerShell version of ExBPA is possibly one of the coolest cmdlets Microsoft has created. The
Test-SystemHealth cmdlet runs against the local server unless you specify the ServerList
parameter. When this cmdlet is initiated, it attempts to run an Internet update to retrieve the latest BPA,
and then performs the BPA test.
Pages:
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541