Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
As the number of computers in your organization increases or decreases, you might need to enable or disable the global catalog service on domain controllers. For example, if the only global catalog server in a site fails, you can enable a different global catalog server. If a single site has more global catalog servers than it needs (resulting in excessive replication traffic), you can disable the global catalog service on one or more computers.
You can enable and or disable domain controllers as global catalog servers by using ADSI.
The scripts for enabling or disabling a global catalog server are very similar.
Listing 9.18 contains a script that enables a computer to act as a global catalog server. To carry out this task, the script must perform the following steps:
The dsServiceName attribute represents the distinguished name for the NTDS Settings object for this domain controller.
The NTDS settings represent the data in the Active Directory that define a computer as a domain controller.
The Options attribute represents different things depending on the object. For the NTDS Settings object, the Options attribute indicates whether the computer has been enabled as a global catalog server.
Listing 9.18 Enabling a Global Catalog Server
|
|
To disable a global catalog server, use the same code as shown in Listing 9.18, but set the value of the Options attribute to 0, as shown in Listing 9.19.
Listing 9.19 Disabling a Global Catalog Server
|
|
Send us your feedback | « Previous | Next » |