DomainController.EnableGlobalCatalog Method ()

 

Promotes this domain controller to a global catalog server.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, 
	Unrestricted = true)]
[DirectoryServicesPermissionAttribute(SecurityAction.InheritanceDemand, 
	Unrestricted = true)]
public virtual GlobalCatalog EnableGlobalCatalog()

Return Value

Type: System.DirectoryServices.ActiveDirectory.GlobalCatalog

A GlobalCatalog object that represents the global catalog server.

Exception Condition
ObjectDisposedException

The current object has been disposed.

The GlobalCatalog.DisableGlobalCatalog method is used to demote the domain controller from a global catalog server.

.NET Framework
Available since 2.0
Return to top
Show: