Why not check the Registry for names and statuses?
For example:
Code:
# List the Queue Managers
$key_name = Get-ItemProperty hklm:\SOFTWARE\Wow6432Node\IBM\MQSeries\CurrentVersion\Configuration\QueueManager\* "Name"
# Check their status
ForEach ($i in $key_name) {
$qmgr_name = $i.PSObject.Properties["Name"].Value
$key_status = Get-ItemProperty hklm:software\Wow6432Node\IBM\MQSeries\CurrentVersion\Status\QueueManager\$qmgr_name\QueueManagerStatus "CurrentStatus"
$qmgr_status = $key_status.PSObject.Properties["CurrentStatus"].Value
}
That's old code by the way, I haven't rechecked it against a current installation. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum