Hello Crive and Welcome to the board. KORG

For v3.6x the link Kent gave you is probably the best script for OS detection.

If you just want to determine if SERVER or not and don't care about the version you could do something like this.



IF @INWIN = 1
  $SRVR = ReadValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions""ProductType")
    IF $SRVR<>"WinNT"    ; System is not a Workstation so assume it is a Server
      QUIT ; or do what ever else you want to do
    ENDIF
ENDIF