Health Check Hub Transport servers
Hi We've been having some issues with our Paris Hub Transport Exchange 2007 servers recently, so I'd like to run a script that will check all their services in the morning. Our Paris Hub Transport servers all have name: Hub-Par-1, Hub-Par-2 etc up to Hub-Par-7 I was thinking: get-transportserver | where-object {$_.name -like "Hub-Par*} | foreach-object {Test-ServiceHealth -server $_} Whilst this brings up all the servers it doesn't list their names across the results. Does anyone know how this is possible in Powershell?
November 27th, 2011 1:54pm

On Sun, 27 Nov 2011 18:38:46 +0000, Smith1974 wrote: >Hi We've been having some issues with our Paris Hub Transport Exchange 2007 servers recently, so I'd like to run a script that will check all their services in the morning. Our Paris Hub Transport servers all have name: Hub-Par-1, Hub-Par-2 etc up to Hub-Par-7 I was thinking: get-transportserver | where-object {$_.name -like "Hub-Par*} | foreach-object {Test-ServiceHealth -server $_} Whilst this brings up all the servers it doesn't list their names across the results. Does anyone know how this is possible in Powershell? If you're just looking for something quick-and-dirty, this would work: "...{$_;Test-ServiceHealth -server $_;'==============='}" --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
November 27th, 2011 10:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics