Solved

Identifying what domain controllers are not global catalogs

Posted on 2013-12-19
3
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 250 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 3

Assisted Solution

by:Aanand Singh Karki
Aanand Singh Karki earned 150 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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 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