Naw the Windows 8 code for this section here: function getOSver() { position="wmi.js"; whatfunc="getOSver()"; if (szOSVerCache==NOT_FOUND) // this function is called often - get it once and cache the result { var Caption; try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); Caption=objItem.Caption; if (Caption.indexOf("Windows 7") != -1) szOSVerCache="Win7"; if (Caption.indexOf("2008") != -1) szOSVerCache="08"; if (Caption.indexOf("Vista") != -1) szOSVerCache="Vista"; if (Caption.indexOf("2003") != -1) szOSVerCache="03"; if (Caption.indexOf("XP") != -1) szOSVerCache="XP"; if (Caption.indexOf("2000") != -1) szOSVerCache="2K"; } catch(ex) { try { ver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\CurrentVersion"); } catch(ex1) { try { ver=WshShell.RegRead("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Version"); } catch(ex2) { ; } } if (ver=="5.0") szOSVerCache="2K"; if (ver=="4.0") szOSVerCache="NT"; if (ver=="Windows 98") szOSVerCache="98"; if (ver=="Windows Millennium Edition") szOSVerCache="ME"; if (ver=="Windows 95") szOSVerCache="95"; } } return szOSVerCache; } This is the main part I need: if (Caption.indexOf("Windows 7") != -1) I have NO clue what MS is calling it internally.