Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Management
Network Management

  Switch on low bandwidth view
Network Management Functions

The network management functions can be grouped as follows.

Alert Functions

FunctionDescription
NetAlertRaiseNotifies all registered clients that a particular event has occurred.
NetAlertRaiseExSimplifies notifying registered clients that a particular event has occurred, because, unlike NetAlertRaise, NetAlertRaiseEx does not require a STD_ALERT structure.

 

API Buffer Functions

FunctionDescription
NetApiBufferAllocateAllocates memory from the heap. Call this function when you require compatibility with the NetApiBufferFree function.
NetApiBufferFreeFrees memory allocated by the NetApiBufferAllocate function and other network management functions.
NetApiBufferReallocateChanges the size of a buffer allocated by a call to the NetApiBufferAllocate function.
NetApiBufferSizeReturns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function.

 

Directory Service Functions

FunctionDescription
NetAddAlternateComputerNameAdds an alternate name for the specified computer.
NetEnumerateComputerNamesEnumerates names for the specified computer.
NetGetJoinableOUsRetrieves a list of organizational units (OUs) in which a computer account can be created.
NetGetJoinInformationRetrieves join status information for the specified computer.
NetJoinDomainJoins a computer to a workgroup or domain.
NetLogonSetServiceBitsNotifies the Netlogon service of the running state of the services on a domain controller. The caller must be running in the context of either the LocalSystem or the LocalService account.
NetProvisionComputerAccountProvisions a computer account for later used in an offline domain join operation.
NetRemoveAlternateComputerNameRemoves an alternate name for the specified computer.
NetRenameMachineInDomainChanges the name of a computer in a domain.
NetRequestOfflineDomainJoinExecutes 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.
NetSetPrimaryComputerNameSets the primary computer name for the specified computer.
NetUnjoinDomainUnjoins a computer from a workgroup or a domain.
NetValidateNameVerifies the validity of a computer name, workgroup name, or domain name.

 

Get Functions

FunctionDescription
NetGetAnyDCNameReturns the name of any domain controller for a domain that is directly trusted by a specified server.
NetGetDCNameReturns the name of the primary domain controller (PDC) for the specified domain.
NetGetDisplayInformationIndexReturns the index of the first display information entry whose name begins with a specified string or alphabetically follows the string.
NetQueryDisplayInformationReturns user, computer, or global group account information.

 

Group Functions

FunctionDescription
NetGroupAddCreates a global group.
NetGroupAddUserAdds one user to an existing global group.
NetGroupDelRemoves a global group whether or not the group has any members.
NetGroupDelUserRemoves one user name from a global group.
NetGroupEnumLists all global groups on a server.
NetGroupGetInfoReturns information about a particular global group.
NetGroupGetUsersLists all members of a particular global group.
NetGroupSetInfoSets general information about a global group.
NetGroupSetUsersAssigns members to a new global group; replaces the members of an existing group.

 

Local Group Functions

FunctionDescription
NetLocalGroupAddCreates a local group.
NetLocalGroupAddMembersAdds one or more users or global groups to an existing local group.
NetLocalGroupDelDeletes a local group, removing all existing members from the group.
NetLocalGroupDelMembersRemoves one or more members from an existing local group.
NetLocalGroupEnumReturns information about each local group account on a server.
NetLocalGroupGetInfoReturns information about a particular local group account on a server.
NetLocalGroupGetMembersLists all members of a specified local group.
NetLocalGroupSetInfoSets general information about a local group.
NetLocalGroupSetMembersAssigns members to a local group.

 

Message Functions

FunctionDescription
NetMessageBufferSendSends a message to a registered message alias.
NetMessageNameAddRegisters a message alias in the message name table.
NetMessageNameDelDeletes a message alias from the message name table.
NetMessageNameEnumLists all the message aliases stored in the message name table.
NetMessageNameGetInfoReturns information about a particular message alias in the message name table.

 

NetFile Functions

FunctionDescription
NetFileCloseForces a resource to close.
NetFileEnumReturns information about open files on a server.
NetFileGetInfoReturns information about a particular opening of a server resource.

 

Remote Utility Functions

FunctionDescription
NetRemoteComputerSupportsQueries the redirector to retrieve the optional features that a remote system supports.
NetRemoteTODEnables applications to access the time-of-day information on a remote server.

 

Schedule Functions

FunctionDescription
NetScheduleJobAddSubmits a job to run at a specified future date and time.
NetScheduleJobDelCancels a range of jobs queued to run on a computer.
NetScheduleJobEnumLists the jobs queued on a specified computer.
NetScheduleJobGetInfoReturns information about a particular job queued on a computer.
GetNetScheduleAccountInformationRetrieves the AT Service account name.
SetNetScheduleAccountInformationSets the AT Service account name and password.

 

Server Functions

FunctionDescription
NetServerDiskEnumReturns a list of local disk drives on a server.
NetServerEnumLists all visible servers of a particular type (or types) in the specified domain.
NetServerGetInfoReturns configuration information about a specified server.
NetServerSetInfoSets the operating parameters for a server.

 

Server and Workstation Transport Functions

FunctionDescription
NetServerComputerNameAddBinds 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.)
NetServerComputerNameDelDisconnects each network transport protocol from an emulated server name set by a previous call to the NetServerComputerNameAdd function.
NetServerTransportAddBinds the specified server to the transport protocol. (This function supports only the SERVER_TRANSPORT_INFO_0 information level.)
NetServerTransportAddExBinds 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.)
NetServerTransportDelDisconnects the transport protocol from the server.
NetServerTransportEnumEnumerates the transport protocols managed by the server.
NetWkstaTransportEnumLists the transport protocols that are managed by the redirector.

 

Use Functions

FunctionDescription
NetUseAddCreates a connection between a local computer and a server.
NetUseDelEnds a connection to a shared resource.
NetUseEnumLists all current connections between the local computer and resources on remote servers.
NetUseGetInfoReturns information about a connection to a shared resource.

 

User Functions

FunctionDescription
NetUserAddAdds a user account and assigns a password and privilege level.
NetUserChangePasswordChanges a user's password for a specified network server or domain.
NetUserDelDeletes a user account from the server.
NetUserEnumLists all user accounts on a server.
NetUserGetGroupsReturns a list of global group names to which a user belongs.
NetUserGetInfoReturns information about a particular user account on a server.
NetUserGetLocalGroupsReturns a list of local group names to which a user belongs.
NetUserSetGroupsSets global group memberships for a specified user account.
NetUserSetInfoSets the password and other elements of a user account.

 

User Modals Functions

FunctionDescription
NetUserModalsGetReturns 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.
NetUserModalsSetSets global information for all users and global groups in the security database.

 

Validation Functions

FunctionDescription
NetValidatePasswordPolicyFreeFrees the memory that the NetValidatePasswordPolicy function allocates for the OutputArg parameter,
NetValidatePasswordPolicyEnables 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

FunctionDescription
NetWkstaGetInfoReturns information about the configuration elements for a workstation.
NetWkstaSetInfoConfigures a workstation.
NetWkstaUserEnumLists information about all users currently logged on to the workstation.
NetWkstaUserGetInfoReturns information about one currently logged-on user.
NetWkstaUserSetInfoSets the user-specific information for the configuration elements of a workstation.

 

Obsolete Functions

See Also

Windows Networking Functions

Send comments about this topic to Microsoft

Build date: 7/9/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker