Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntServerList WntServiceAt Help File
The correct flags are listed below:
1 All LAN Manager workstation 2 All LAN Manager server 4 Any server running with Microsoft SQL Server 8 Primary domain controller 16 Backup domain controller 32 Server running the timesource service 64 Apple File Protocol servers 128 Novell servers 256 LAN Manager 2.x Domain Member 512 Server sharing print queue 1024 Server running dialin service 2048 Xenix server 4096 Windows NT (either workstation or server) 8192 Server running Windows for Workgroups 16384 Microsoft File and Print for Netware 32768 Windows NT Non-DC server 65536 Server that can run the browser service 131072 Server running a browser service as backup 262144 Server running the master browser service 524288 Server running the domain master browser 4194304 Windows 95 or newer -2147483648 Domain announcement
wntServerList("\\mspdc01","mortenson",8|16)or
wntServerList("\\mspdc01","mortenson",24)(which I assume are logically the same), I only see three of the BDCs. Is there a reason I don't see any on the WAN and only 3 of 5 locally? They are all NT4 BDCs that don't get shown. Thanks!
Also WANs usually have a router that limits what network packets can go across it, and it may be screening out the normal network chatter where these sorts of things are communicated between computers.
wntServerList("","",2)and I've also tried:
wntServerList("","",1)and also have plugged in a server name for the 1st parameter.
In all cases, the function returns ALL servers AND workstations on the network. NOT just servers OR workstations as one would expect, using the 1 or 2.
If I specify 8|16, it works great for returning the BDC/PDC.
We're running NT4.0, SP5, and WB2000C.
Any idea what the problem could be?
These days most machines are running both as workstations and servers. If you can connect to a machine and see files, then it is running as a server. It has nothing to do with if you have Windows Server installed or anything.
There is a way to peek at the registry and see what version of NT is installed.
Article ID: W13578
Filename: wntServerList and wntServiceAt.txt
File Created: 2000:11:29:14:11:50
Last Updated: 2000:11:29:14:11:50