Server Functions

The network management server functions perform administrative tasks on a local or remote server. The server functions are listed following.

FunctionDescription
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.

 

Only a user or application with admin group membership on a local or remote server can perform administrative tasks on that server to control the server's operation, user access, and resource sharing. The low-level parameters that affect a server's operation can be examined and modified by calling the NetServerGetInfo and NetServerSetInfo functions. These parameters are defined in the server's LANMAN.INI file.

Most network management server functions execute only on a remote server. The NetServerEnum function executes on either a local workstation or a remote server. If you attempt to execute other server functions on a local workstation, the functions return the error NERR_RemoteOnly.

Server-specific information is available at the following levels:

If you are programming for Active Directory, you may be able to call certain Active Directory Service Interface (ADSI) methods to achieve the same functionality you can achieve by calling the network management server functions. For more information, see IADsComputer.

For more information, see the Server and Workstation Transport Functions.

 

 

Show: