Or use this:
 Code:
$ProductType = ReadValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName")
? $ProductType

Or if you are only looking which type of Windows you are using you can use this:
 Code:
$ProductType = ReadValue("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","EditionID")
? $ProductType


Over the years personally I have found @PRODUCTTYPE to be unreliable at best.
The code had to be adjusted in Kix itself by Ruud with each new Windows release.