?
Solved

Identifying what domain controllers are not global catalogs

Posted on 2013-12-19
3
Medium Priority
?
355 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

800 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