In this mini-post, I want to show you how to enable or disable a global catalog on a Domain Controller (DC) using Windows PowerShell.

To perform this task, use the Set-ADObject cmdlet with the following syntax:

The -Identify parameter specifies the Active Directory object to modify. In this case, the NTDSSettingsObjectDN of the domain controller. 

To obtain this value, use the Get-ADDomainController cmdlet with the following syntax.

In the -replace parameter you can use:

  • @{options=’1′} = Enable
  • @{options=’0} = Disable

Run the following PowerShell command as administrator.

Global Catalog

Then, you can verify it through the command line with the nltest command using the following syntax:


The GC record in the Flags means that your GC is ready.

If you want to know more about Set-ADObject cmdlet, check out this link: