Requiem87 Posted September 12, 2012 Posted September 12, 2012 (edited) Hi.Does anybody have a list of possible antivirus names as they will be returned by the function getAntiVirusProduct() ?Would be very handy as I believe this is a hard match and must be exact, isn't that right?Let me start:"Microsoft Security Essentials"Cheers,Requiem87 Edited September 12, 2012 by Requiem87
myselfidem Posted September 12, 2012 Posted September 12, 2012 (edited) The Antivirus product installed on your computer is detected!On my computer x86: " Microsoft Security Essentials" is installed and detected.On my computer amd64: "Norton Internet Security" is installed and detected. Edited September 12, 2012 by myselfidem
Dynaletik Posted September 13, 2012 Posted September 13, 2012 For my Windows 8 Pro x64 I'm using the built in Defender it says:"Windows Defender"
myselfidem Posted September 13, 2012 Posted September 13, 2012 (edited) For my Windows 8 Pro x64 I'm using the built in Defender it says:"Windows Defender"Thanks for your sharing result!Please could you tell us if you see inside: information | Computer | OS System = Win8 ? And Edition IDRegards Edited September 13, 2012 by myselfidem
Dynaletik Posted September 13, 2012 Posted September 13, 2012 Yes, man. It does. "Win8". Edition ID says "Not found"
myselfidem Posted September 13, 2012 Posted September 13, 2012 (edited) Could you try to change inside wmi.js (only line 50) and share your result?:Change "Windows 8" to "8":function getOSver() { position="wmi.js"; whatfunc="getOSver()"; if (szOSVerCache==NOT_FOUND) // this function is called often - get it once and cache the result { try { objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2"); colItems=objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); enumItems=new Enumerator(colItems); objItem=enumItems.item(); var Caption=objItem.Caption; if (Caption.indexOf("8") != -1) szOSVerCache="Win8"; Thanks! Edited September 13, 2012 by myselfidem
Dynaletik Posted September 13, 2012 Posted September 13, 2012 It still says Not found. I can't find Information about this in the Internet. Only win 7 Information is online. ^^
Dynaletik Posted September 13, 2012 Posted September 13, 2012 (edited) Yes, OS version still shows Win8, but Edition ID, like before shows "Not found".(BTW, IE Version should detect 10, says 9.1.) Edited September 13, 2012 by Dynaletik
Dynaletik Posted September 13, 2012 Posted September 13, 2012 (edited) Perhaps split those Posts from the AntiVir thread and make a separate thread for it.I changed my getOSeditionID() like follows: if (szOSVerCache=="Win8") if (Caption.indexOf("Microsoft Windows 8") != -1) szEditionIDCache="Standard"; if (Caption.indexOf("Microsoft Windows 8 Enterprise") != -1) szEditionIDCache="Enterprise"; if (Caption.indexOf("Microsoft Windows 8 Pro") != -1) szEditionIDCache="Pro"; if (Caption.indexOf("Microsoft Windows RT") != -1) szEditionIDCache="RT";Works for testing purposes, but there should be a better way using SKU. I even can only test Windows 8 Pro, as my university only gave me that license. And the "normal" version just does not have an Edition ID, it is just called Windows 8 I guess. Edited September 13, 2012 by Dynaletik
myselfidem Posted September 13, 2012 Posted September 13, 2012 Yes, because Windows 8 Pro Edition isn't mentionned inside: function getOSsku(sku) (wmi.js)!
myselfidem Posted September 13, 2012 Posted September 13, 2012 (edited) Could you try this SKU.vbs to know the sku about Windows 8 Pro?:sku.vbsOn Error Resume NextConst wbemFlagReturnImmediately = &h10Const wbemFlagForwardOnly = &h20arrComputers = Array(".")For Each strComputer In arrComputers Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", _ wbemFlagReturnImmediately + wbemFlagForwardOnly) For Each objItem In colItems WScript.Echo "OperatingSystemSKU: " & objItem.OperatingSystemSKU WScript.Echo NextNextThanks Edited September 14, 2012 by myselfidem
Dynaletik Posted September 13, 2012 Posted September 13, 2012 (edited) Yes like I wrote you via PM, it is 48. I put it into my wmi.js now and it works: case 48: OSSKU="Pro"; break;But I do not know how to determine the other editions. I just deleted the free Enterprise installer when I got Win 8 Pro. EDIT: FYI, the Version of IE gets detected wrong, because the "Version" string it looks for holds the wrong Information, the reg key looks like in the pic Edited September 13, 2012 by Dynaletik
myselfidem Posted September 13, 2012 Posted September 13, 2012 (edited) Thanks! Could you try to write inside wmi.js (line 254): case 48: OSSKU="Professional Edition"; break; Edited September 13, 2012 by myselfidem
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now