I am trying to get Kix to call another script for Windows 7 machines only. It seems that Windows 7 is ignoring the Call, Shell and run commands? on both x64 and x32. I have disabled UAC so its not causing the issue.

Is anyone else having the same problem, I was wondering if this is similar to the Ifingroup bug? BTW I have also tried Kix 4.61 to no avail????

The write value is working and that is being applied to everything other than windows 7
 Code:
; 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


Key.bat contains

 Code:
REG ADD HKLM\software\AssetCTRL /v Test /t REG_DWORD /d 1001 /F
pause



Edited by Mart (2012-05-01 10:35 AM)
Edit Reason: Please use code tags when posting code.