Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


List only windows 2000 systems

Keywords: 	   AskYesNo

Question:

Is there a way using the wntServerList call to turn up a list of only the windows 2000 systems? The flag 4096 returns NT and w2k workstation or server, and 32768 turns up NT and w2k non-dc servers, but there are more occasions when I need to find just the w2k systems.

I am trying to identify them now by checking in the registry at:

HKLM\Software\Microsoft\Windows NT\
CurrentVersion\[ProductName]
for contents: Microsoft Windows 2000 but some seem to slip through the list, and it would be much better to have a wntServerList call.

The w2k systems seem to show up on my server manager list as 'Windows NT 5.0 server'

Any way to do this?

Answer:

You could use wntServerList to get all the NT machines, Once you identify a server as a NT/2000 server, use wntServerInfo(1) to determine what version of NT. 2000 machines will return a 5



Article ID:   W14607
Filename:   List only windows 2000 systems.txt