Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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