; The following registry settings need to be applied to all PC's on the network
If @PRODUCTTYPE = "Windows 2000 Server" GoTo "notsupported"
Else If @PRODUCTTYPE = "Windows 95" GoTo "notsupported"
Else If @PRODUCTTYPE = "Windows Server 2003" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Server 2003 Domain Controller" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Server 2003 R2" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Server 2003 R2 Domain Controller" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Vista" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Server 2003 R2 Domain Controller" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows 98" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows Me" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows NT Workstation" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows NT Server" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows NT Domain Controller" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows 2000 Professional" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows 2000 Domain Controller" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows XP Home Edition" GoTo "runscript"
Else If @PRODUCTTYPE = "Windows XP Professional" GoTo "runscript"
;For some reason this is failing to run on Win7 x32 and x64 I have also tried running as shell and run? key.bat resides in netlogon.
CALL @LDRIVE + "\Key.bat"
EndIf
:runscript
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\AssetCTRL", "Test", "1001", "REG_DWORD")
Endif
:notsupported
EndIf