Solved

Exchange 2010 EMS command question

Posted on 2014-03-04
4
200 Views
Last Modified: 2014-03-04
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.
0
Comment
Question by:tballin
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Justin Yeung
ID: 39904357
get-databaseavailabilitygroup -status | ? {$_.PrimaryActiveManager -like "servername"} | ft

what status you want to get from PrimaryActiveManager?
0
 

Author Comment

by:tballin
ID: 39904408
The status of PrimaryActiveManager should be the name of the active DAG member.  So like "ACMEExch1".
0
 
LVL 14

Accepted Solution

by:
Justin Yeung earned 500 total points
ID: 39904427
it should return just with member name.........

so what do you need???

what if you do

get-databaseavailabilitygroup -status | fl Name,Primary*

or

get-databaseavailabilitygroup -status | ft Name,Primary*


does it return the result?
0
 

Author Comment

by:tballin
ID: 39904480
Both work - thanks!
0

Featured Post

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article will help you understand what HashTables are and how to use them in PowerShell.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now