Domain Category

Domain Category API Functions retrieve information about the domain and manage the domain configuration and replication of the accounts database to the backup domain controllers

The Domain Category API functions are as follows:

Function

Description

NetDomainComputerAdd

Adds the backup server or workstation computer to the domain for which the specified server is a primary domain controller.

NetDomainComputerDel

Deletes the backup server or workstation computer from the domain for which the specified server is a primary domain controller.

NetDomainSyncDomain

Forces a primary domain controller to ask each backup domain controller in its domain to replicate now.

NetDomainSyncServer

Forces a backup domain controller to get a completely new copy of the SAM database from the primary domain controller.

NetGetDCName

Retrieves the name of the domain controller.

The domain should have at least one server running Advanced Server or Windows NT Server software, which serves as a primary domain controller and stores a master copy of the domain’s account database. Other computers can be members of the domain.

NetDomainComputerAdd and NetDomainComputerDel can be used to add and delete backup domain controllers and workstations in the domain.

The backup domain controllers keep copies of the primary domain controller’s accounts database, which is replicated to every backup controller in the domain. This replication can be managed by using NetDomainSyncDomain and NetDomainSyncServer.

NetDomainSyncDomain, when called on the primary domain controller, causes it to ask all of the backup domain controllers in the domain to replicate now. This operation does not imply a full synchronization. Only outstanding differences will be replicated, if possible.

NetDomainSyncServer, when called on the backup domain controller, causes it to get a completely new copy of the SAM database from the primary domain controller. This operation will perform a full synchronization.

NetGetDCName returns the domain name in the form of an ASCIIZ string.

Previous Page Page Top Index Next Page See Page