To disable the OS/2 subsystem, set the value of GlobalFlag to 20100000 in the following subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager