Platform SDK: Network Management

Server Functions

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

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.

Any 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, starting at level 100:

SERVER_INFO_100
SERVER_INFO_101

SERVER_INFO_102

SERVER_INFO_402

SERVER_INFO_403
SERVER_INFO_1501
SERVER_INFO_1502
SERVER_INFO_1503
SERVER_INFO_1506
SERVER_INFO_1509
SERVER_INFO_1510
SERVER_INFO_1511
SERVER_INFO_1512
SERVER_INFO_1513
SERVER_INFO_1515
SERVER_INFO_1516
SERVER_INFO_1518
SERVER_INFO_1523
SERVER_INFO_1528
SERVER_INFO_1529
SERVER_INFO_1530
SERVER_INFO_1533
SERVER_INFO_1536
SERVER_INFO_1538
SERVER_INFO_1539
SERVER_INFO_1540
SERVER_INFO_1541
SERVER_INFO_1542
SERVER_INFO_1544
SERVER_INFO_1550
SERVER_INFO_1552

The server information levels that were available in LAN Manager 2.x are no longer available. However, the following structures are supported on LAN Manager 2.x systems:

SERVER_INFO_1005
SERVER_INFO_1010

SERVER_INFO_1016

SERVER_INFO_1017

SERVER_INFO_1018

SERVER_INFO_1107

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.

Windows 95/98: The following information levels are supported on Windows 95 and Windows 98:

server_info_1
server_info_50

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