Link to home
Start Free TrialLog in
Avatar of tballin
tballin

asked on

Exchange 2010 EMS command question

I'm trying to use the EMS to get only the "PrimaryActiveManager" status from "get-databaseavailabilitygroup -status" command, but I'm not having any luck.  I've tried filtering with the Where-object cmdlet, but I've had no success.
Avatar of Justin Yeung
Justin Yeung
Flag of United States of America image

get-databaseavailabilitygroup -status | ? {$_.PrimaryActiveManager -like "servername"} | ft

what status you want to get from PrimaryActiveManager?
Avatar of tballin
tballin

ASKER

The status of PrimaryActiveManager should be the name of the active DAG member.  So like "ACMEExch1".
ASKER CERTIFIED SOLUTION
Avatar of Justin Yeung
Justin Yeung
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tballin

ASKER

Both work - thanks!