Jump to content

[BUG+FIX] getAntiVirusProduct and getFirewallProduct broken on vista/7


Recommended Posts

Posted (edited)

Cause

Vista and Win7 have a different security center WMI namespace.

Fix

Replace the two lines in WMI.js

objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\SecurityCenter");

with

objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\SecurityCenter" + (getOSver() != "XP" ? "2" : ""));

Edited by Francesco

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...