Lists servers in a domain.
wntServerList(server-name, domain-name, server-type)
(s) server-name: the UNC name of the server on which the function will execute (e.g., "\\MYSERVER"), or ("") for the local computer.
(s) domain-name: the name of the domain which will be used (e.g., "SALES"), or ("") for the primary domain.
(i) server-type: identifies the type of servers which will be examined. See below.
(i) a tab-delimited list of server UNC names (e.g., "\\MYSERVER"). Note: An NT workstation can be considered to be a "server".
Server-type
Specify -1 for all servers. Or, specify one or more of the following flags, combined using the binary OR ("|") operator.
Req# |
Server Type |
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 268435456 536870912 1073741824 -2147483648
|
All workstations All servers Any server running with Microsoft SQL Server Primary domain controller Backup domain controller Server running the timesource service Apple File Protocol servers Novell servers LAN Manager 2.x Domain Member Server sharing print queue Server running dialin service Xenix server Windows NT/Windows 2000 (workstation or server) Server running Windows for Workgroups Microsoft File and Print for Netware Windows NT/Windows 2000 Non-domain controller Server that can run the browser service Server running a browser service as backup Server running the master browser service Server running the domain master browser OSF Server VMS Server Windows 95 or later Root of DFS tree Server clusters available in the domain Terminal Server IBM DSS (Directory & Security Services) or equivalent return list for alternate transport Servers maintained by the browser Primary Domain
|
Note: This function can take a while to run, depending on how many servers are in the domain. Also, it will only return the names of servers which it is able to access, which requires that the user have browse access to their service control managers.
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
;return a list of all Windows NT (either workstation or server) servers = wntServerList("","",4096) AskItemlist("list of Windows NT workstations or servers",servers,@TAB,@SORTED,@SINGLE) Exit