Link to home
Start Free TrialLog in
Avatar of Simon336697
Simon336697Flag for Australia

asked on

Identifying what domain controllers are not global catalogs

Dear everyone,

I hope you are all well and can assist.

I would like to build a query at does the following:

1) Gets a list of all domain controllers
2) For each domain controller, determine if it is a global catalog or not
3) Write to a file the names of the domain controllers that are not global catalogs

Any help greatly appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
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 Simon336697

ASKER

Hi mike, you are a champion.
Mike, with the returned domain controllers that are not GCs, is there a way to loop through that list and add the GC role to them?
You would have to pipe it into admod.  I'd have to test it out.  Don't want to give you code that doesn't work.

How many do you have?

Thanks

Mike
SOLUTION
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
Thanks so much