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:

nltest

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:https://docs.microsoft.com/en-us/powershell/module/activedirectory/set-adobject?view=winserver2012-ps