Hello , I am new to the Kix area, and have be faced with revamping/Creat a whole new loging script..... We currently are running ad 2003 mixed mode 2000, XP win 7.... come up to a wall where the scrip will not check OS version with the "@producttype command .. The scrip is scipping it and going to the end .. and Help would be appricated

 Code:
;********************************************************************************
;*    Check To See If System Is A Server 	*
;********************************************************************************

$aOS = "Windows XP Professional","Windows 2000 Professional","Windows NT Workstation","Windows 7 Professional Edition"
IF ASCAN ($aOS,$OS) = 0
		GOTO Skip_System
EndIf


;********************************************************************************
;*	Checking for Admin Rights on the PC					*
;********************************************************************************

$AdminRights = "0"

IF $OS = "Windows XP Professional" AND EXIST("C:\Documents and Settings\xpadmin\ntuser.ini") = 1
	$AdminRights = "1"
ENDIF

IF $OS = "Windows XP Professional" AND EXIST("C:\Documents and Settings\Administrator\ntuser.ini") = 1
	$AdminRights = "1"
ENDIF

IF $OS = "Windows 2000 Professional" AND EXIST("C:\Documents and Settings\Administrator\ntuser.ini") = 1
	$AdminRights = "1"
ENDIF

IF $OS = "Windows 7 Professional Edition" AND EXIST("C:\Users\Administrator\ntuser.ini") = 1
	$AdminRights = "1"
ENDIF

;********************************************************************************
;*	Module To Disable IE Reuse of Window When Launching Shortcut		*
;********************************************************************************

$IEWindowReuse = ReadValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main","AllowWindowReuse")
IF $IEWindowReuse = "" OR $IEWindowReuse = "1"
	Writevalue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main","AllowWindowReuse","0","REG_DWORD")
ELSE
ENDIF

:Skip_System


:EndSystem


Edited by Mart (2011-10-16 11:45 AM)
Edit Reason: Please use code tags when posting code.