Directory Service Functions

The network management directory service functions allow developers to work with the domain controller and domain membership in the directory service.

The network management directory service functions are listed following.

Function Description
NetAddAlternateComputerName Adds an alternate name for the specified computer.
NetEnumerateComputerNames Enumerates names for the specified computer.
NetGetJoinableOUs Retrieves a list of organizational units (OUs) in which a computer account can be created.
NetGetJoinInformation Retrieves join status information for the specified computer.
NetJoinDomain Joins a computer to a workgroup or domain.
NetProvisionComputerAccount Provisions a computer account for later used in an offline domain join operation.
NetRemoveAlternateComputerName Removes an alternate name for the specified computer.
NetRenameMachineInDomain Changes the name of a computer in a domain.
NetSetPrimaryComputerName Sets the primary computer name for the specified computer.
NetUnjoinDomain Unjoins a computer from a workgroup or a domain.
NetValidateName Verifies the validity of a computer name, workgroup name, or domain name.

 

For more information about programming for Active Directory, see the Active Directory Reference. For more information about organizational units, see Managing Users in the Active Directory documentation.