Try giving this shot, it's what we use for our logon script which is still at 3.63 i believe

Code:

;*************************************************************
:_DetectOS
;This will determine the exact Operating System of a machine.
;Returns OS Type
$_ProductType = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions","ProductType")
SELECT
CASE @INWIN = 1 AND $_ProductType = "WinNT" AND @DOS=5.1
$LibraryRet1 = "WinXP Professional"
$LibraryRet2 = "Client"
CASE @INWIN = 1 AND $_ProductType <> "WinNT" AND @DOS=5.0
$LibraryRet1 = "Win2k Server"
$LibraryRet2 = "Server"
CASE @INWIN = 1 AND $_ProductType = "WinNT" AND @DOS=5.0
$LibraryRet1 = "Win2k Professional"
$LibraryRet2 = "Client"
CASE @INWIN = 1 AND $_ProductType = "ServerNT"
$LibraryRet1 = "WinNT Server"
$LibraryRet2 = "Server"
CASE @INWIN = 1 AND $_ProductType = "WinNT"
$LibraryRet1 = "WinNT Workstation"
$LibraryRet2 = "Client"
CASE @INWIN = 2 AND @DOS = "4.10"
$LibraryRet1 = "Win98"
$LibraryRet2 = "Client"
CASE @INWIN = 2 AND @DOS = "4.0"
$LibraryRet1 = "Win95"
$LibraryRet2 = "Client"
CASE 1
$LibraryRet1 = "Unknown operating system"
$LibraryRet2 = "No Known Function"
ENDSELECT
RETURN


_________________________
Eric