190899 - How to Determine the OS Type in a Logon Script: 
http://support.microsoft.com/default.aspx?scid=kb;[LN];190899

You can obtain Gettype.exe version 4.0 from by installing the Windows 2000 Resource 
Kit Tools. Gettype.exe works by querying the registry for the installation type and 
setting the DOS ERRORLEVEL appropriately: 
Returns 1 for Windows NT Workstation.
Returns 2 for Windows 2000 Professional.
Returns 3 for Windows NT Server non-domain controller.
Returns 4 for Windows 2000 Server non-domain controller.
Returns 5 for Windows NT Server domain controller.
Returns 6 for Windows 2000 Server domain controller.
Returns 7 for Windows NT Enterprise/Terminal Server domain controller.
Returns 8 for Windows NT Enterprise/Terminal Server non-domain controller.



-----Original Message-----
From: Graham Turner [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 4:09 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] os version


i know this one has probably been done about 500 times already, but was
hoping to sound the mailing list out on techniques of differentiating
between Windows 2000 / NT4 from login script, given that both Windows 2000
and NT4 return "Windows NT" from a query of the "OS Version" environment
variable

GT


List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to