wntServerInfo

Returns information about a server.

Syntax:

wntServerInfo( server-name, request)

Parameters:

(s) server-name: the UNC name of the server on which the function will execute (e.g., "\\MYSERVER"), or ("") for the local computer.

(i) request: specifies the information about "server-name" to be returned. See below.

Returns:

(i) depends on request.

 

Security Requirements

Only the Administrators or Accounts Operators local group, or those with Communication, Print, or Server operator group membership can successfully execute the wntServerInfo function.

 

Req#

Description

1

(i) major version

2

(i) minor version

3

(i) type (see wntServiceAt for a list of server types)

4

(s) comment

5

(i) maximum users who can log on

6

(i) auto-disconnect time, in minutes, or -1 if no auto-disconnect

7

(i) hidden to other computers in domain? (0 = visible, 1 = hidden)

8

(i) network announce rate, in seconds

9

(i) delta value by which announce rate can vary, in milliseconds

10

(s) path to user directories

 

 

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

info=wntServerInfo( "", 10) Message("The path to user directories",info) Exit
See Also:

wntServerList