Network Management Functions

The network management functions can be grouped as follows.

Alert Functions

Function Description
NetAlertRaise Notifies all registered clients that a particular event has occurred.
NetAlertRaiseEx Simplifies notifying registered clients that a particular event has occurred, because, unlike NetAlertRaise, NetAlertRaiseEx does not require a STD_ALERT structure.

 

API Buffer Functions

Function Description
NetApiBufferAllocate Allocates memory from the heap. Call this function when you require compatibility with the NetApiBufferFree function.
NetApiBufferFree Frees memory allocated by the NetApiBufferAllocate function and other network management functions.
NetApiBufferReallocate Changes the size of a buffer allocated by a call to the NetApiBufferAllocate function.
NetApiBufferSize Returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function.

 

Azure Active Directory Join Information Functions

Function Description
NetFreeAadJoinInformation Frees the memory allocated for the specified DSREG_JOIN_INFO structure, which contains join information for a tenant and which you retrieved by calling the NetGetAadJoinInformation function.
NetGetAadJoinInformation Retrieves the join information for the specified tenant. This function examines the join information for Microsoft Azure Active Directory and the work account that the current user added.

 

Directory Service and Domain Join Functions

Function Description
NetAddAlternateComputerName Adds an alternate name for the specified computer.
NetCreateProvisioningPackage Provisions a computer account for later use in an offline domain join operation.
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.
NetRequestOfflineDomainJoin Executes locally on a machine to modify a Windows operating system image mounted on a volume. The registry is loaded for the image and provisioning blob data is written where it can be retrieved during the completion phase of an offline domain join operation.
NetRequestProvisioningPackageInstall Executes locally on a machine to modify a Windows operating system image mounted on a volume. The registry is loaded from the image and provisioning package data is written where it can be retrieved during the completion phase of an offline domain join operation.
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.

 

Get Functions

Function Description
NetGetAnyDCName Returns the name of any domain controller for a domain that is directly trusted by a specified server.
NetGetDCName Returns the name of the primary domain controller (PDC) for the specified domain.
NetGetDisplayInformationIndex Returns the index of the first display information entry whose name begins with a specified string or alphabetically follows the string.
NetQueryDisplayInformation Returns user, computer, or global group account information.

 

Group Functions

Function Description
NetGroupAdd Creates a global group.
NetGroupAddUser Adds one user to an existing global group.
NetGroupDel Removes a global group whether or not the group has any members.
NetGroupDelUser Removes one user name from a global group.
NetGroupEnum Lists all global groups on a server.
NetGroupGetInfo Returns information about a particular global group.
NetGroupGetUsers Lists all members of a particular global group.
NetGroupSetInfo Sets general information about a global group.
NetGroupSetUsers Assigns members to a new global group; replaces the members of an existing group.

 

Local Group Functions

Function Description
NetLocalGroupAdd Creates a local group.
NetLocalGroupAddMembers Adds one or more users or global groups to an existing local group.
NetLocalGroupDel Deletes a local group, removing all existing members from the group.
NetLocalGroupDelMembers Removes one or more members from an existing local group.
NetLocalGroupEnum Returns information about each local group account on a server.
NetLocalGroupGetInfo Returns information about a particular local group account on a server.
NetLocalGroupGetMembers Lists all members of a specified local group.
NetLocalGroupSetInfo Sets general information about a local group.
NetLocalGroupSetMembers Assigns members to a local group.

 

Message Functions

Function Description
NetMessageBufferSend Sends a message to a registered message alias.
NetMessageNameAdd Registers a message alias in the message name table.
NetMessageNameDel Deletes a message alias from the message name table.
NetMessageNameEnum Lists all the message aliases stored in the message name table.
NetMessageNameGetInfo Returns information about a particular message alias in the message name table.

 

NetFile Functions

Function Description
NetFileClose Forces a resource to close.
NetFileEnum Returns information about open files on a server.
NetFileGetInfo Returns information about a particular opening of a server resource.

 

Remote Utility Functions

Function Description
NetRemoteComputerSupports Queries the redirector to retrieve the optional features that a remote system supports.
NetRemoteTOD Enables applications to access the time-of-day information on a remote server.

 

Schedule Functions

Function Description
NetScheduleJobAdd Submits a job to run at a specified future date and time.
NetScheduleJobDel Cancels a range of jobs queued to run on a computer.
NetScheduleJobEnum Lists the jobs queued on a specified computer.
NetScheduleJobGetInfo Returns information about a particular job queued on a computer.
GetNetScheduleAccountInformation Retrieves the AT Service account name.
SetNetScheduleAccountInformation Sets the AT Service account name and password.

 

Server Functions

Function Description
NetServerDiskEnum Returns a list of local disk drives on a server.
NetServerEnum Lists all visible servers of a particular type (or types) in the specified domain.
NetServerGetInfo Returns configuration information about a specified server.
NetServerSetInfo Sets the operating parameters for a server.

 

Server and Workstation Transport Functions

Function Description
NetServerComputerNameAdd Binds an emulated server name to each of the transport protocols on which a server is active. (Combines the functionality of the NetServerTransportEnum function and the NetServerTransportAddEx function.)
NetServerComputerNameDel Disconnects each network transport protocol from an emulated server name set by a previous call to the NetServerComputerNameAdd function.
NetServerTransportAdd Binds the specified server to the transport protocol. (This function supports only the SERVER_TRANSPORT_INFO_0 information level.)
NetServerTransportAddEx Binds the specified server to the transport protocol. (This extended function supports the SERVER_TRANSPORT_INFO_1, SERVER_TRANSPORT_INFO_2, and SERVER_TRANSPORT_INFO_3 information levels.)
NetServerTransportDel Disconnects the transport protocol from the server.
NetServerTransportEnum Enumerates the transport protocols managed by the server.
NetWkstaTransportEnum Lists the transport protocols that are managed by the redirector.

 

Use Functions

Function Description
NetUseAdd Creates a connection between a local computer and a server.
NetUseDel Ends a connection to a shared resource.
NetUseEnum Lists all current connections between the local computer and resources on remote servers.
NetUseGetInfo Returns information about a connection to a shared resource.

 

User Functions

Function Description
NetUserAdd Adds a user account and assigns a password and privilege level.
NetUserChangePassword Changes a user's password for a specified network server or domain.
NetUserDel Deletes a user account from the server.
NetUserEnum Lists all user accounts on a server.
NetUserGetGroups Returns a list of global group names to which a user belongs.
NetUserGetInfo Returns information about a particular user account on a server.
NetUserGetLocalGroups Returns a list of local group names to which a user belongs.
NetUserSetGroups Sets global group memberships for a specified user account.
NetUserSetInfo Sets the password and other elements of a user account.

 

User Modals Functions

Function Description
NetUserModalsGet Returns global information for all users and global groups in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetUserModalsSet Sets global information for all users and global groups in the security database.

 

Validation Functions

Function Description
NetValidatePasswordPolicyFree Frees the memory that the NetValidatePasswordPolicy function allocates for the OutputArg parameter,
NetValidatePasswordPolicy Enables an application to check password compliance against an application-provided account database and verify that passwords meet the complexity, aging, minimum length, and history reuse requirements of a password policy.

 

Workstation and Workstation User Functions

Function Description
NetWkstaGetInfo Returns information about the configuration elements for a workstation.
NetWkstaSetInfo Configures a workstation.
NetWkstaUserEnum Lists information about all users currently logged on to the workstation.
NetWkstaUserGetInfo Returns information about one currently logged-on user.
NetWkstaUserSetInfo Sets the user-specific information for the configuration elements of a workstation.

 

Obsolete Functions

Windows Networking Functions