Hi,

For 2000 and later you can use wmi to sort this out:


   For Each os in
GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
     WScript.Echo " Version: ", os.Caption, os.Version 
   Next

Regards 
Volker


-----Original Message-----
From: Joe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 14, 2003 2:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] os version


Check out gettype from the reskit. It will return a string and an errorlevel
based on the OS.


  joe



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Graham Turner
Sent: Thursday, August 14, 2003 7: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/
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