How to locate Read Only Domain Controllers in the Forest?

Hi Microsoft community,

Is there a PowerShell one-liner or an MMC snapin I can use to easily locate which DCs in my Forest are read only DCs?

I didn't install this Active Directory, I inherited it. :)

Thank you!

May 19th, 2015 3:51pm

You need to run command Netdom Query FSMO from a command prompt.  It will tell you which one does what.
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2015 3:53pm

Hmm, are the more arguments to that command? I don't see any output except on the local DC and it doesn't indicate Read Only anywhere...
May 19th, 2015 4:08pm

I don't remember the syntax, but look here. https://technet.microsoft.com/en-us/library/cc835089%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2015 4:10pm

Get All Domain Controllers  in the default Domain.

import-module ActiveDirectory
$ADInfo = Get-ADDomain
$ADDomainReadOnlyReplicaDirectoryServers = $ADInfo.ReadOnlyReplicaDirectoryServers
$ADDomainReplicaDirectoryServers = $ADInfo.ReplicaDirectoryServers
$DomainControllers = $ADDomainReadOnlyReplicaDirectoryServers + ` $ADDomainReplicaDirectoryServers

OR

import-module ActiveDirectory
$DomainControllers = Get-ADDomainController -filter * -DomainName $DOMAIN

May 20th, 2015 12:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics