?
Solved

Identifying what domain controllers are not global catalogs

Posted on 2013-12-19
3
Medium Priority
?
363 Views
Last Modified: 2014-01-04
Hi everyone,

Id like to ask you kind People if there is a scripted way to query AD to determine what domain controllers are NOT global catalogs?

Is there also a way to then via script, make those domain controllers found, global catalogs?

Thank you everyone and have a great christmas and newyear.
0
Comment
Question by:Simon336697
3 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 1000 total points
ID: 39730890
You can use the following to find DCs that are not GCs

Get-ADDomainController -Filter {IsGlobalCatalog -eq $false}

for the second I used something from MVP Richard Siddaway's blog, notice I changed the first line.

PLEASE TEST THIS FIRST!!!  I will personally test part 2 in the morning.

http://msmvps.com/blogs/richardsiddaway/archive/2012/03/18/enable-global-catalog.aspx

$dc = Get-ADDomainController -Filter {IsGlobalCatalog -eq $false}         
$contextType = [System.DirectoryServices.ActiveDirectory.DirectoryContextType]::DirectoryServer            
$context = New-Object -TypeName System.DirectoryServices.ActiveDirectory.DirectoryContext -ArgumentList $contextType, $dc            
$gc = [System.DirectoryServices.ActiveDirectory.DomainController]::GetDomainController($context)            
$gc.EnableGlobalCatalog()

Open in new window


Thanks

Mike
0
 
LVL 4

Assisted Solution

by:Aanand Singh Karki
Aanand Singh Karki earned 600 total points
ID: 39731499
Hi Simon,

You can Simply Run NlTest Commands to get the DC and GC Information in your Forest..

http://technet.microsoft.com/en-us/library/cc756476(v=ws.10).aspx

http://technet.microsoft.com/en-us/library/cc731935.aspx


dsquery server -isgc

dsquery server -forest -isgc

or Simply

nltest /dsgetdc:Domain name /GC
0
 
LVL 7

Assisted Solution

by:hirenvmajithiya
hirenvmajithiya earned 400 total points
ID: 39733279
To determine which DC is a global catalog server (Graphical method)


1.Open Active Directory Sites and Services.

2.In the console tree, expand upto Server and then NTDS Settings.

3.Right-click the NTDS Settings object, and then click Properties.

4.On the General tab, if the Global Catalog box is checked, the DC is GC server.

Check this for every DC.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

864 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