Jump to content
Sign in to follow this  
ainner

Detecting antivirus presence on Windows XP

Recommended Posts

ainner

I'd like to be able to display a warning if a laptop connecting to my network doesn't have an antivirus installed.

I know that microsoft security center does detect antivirus but I don't know where to find the information (In the registry most likely)

I cheked [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center] without any success.

Any ideas ? Thx

Share this post


Link to post
Share on other sites
Jos

this works for me.

$oWMI = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & @ComputerName & "\root\SecurityCenter")
$colItems = $oWMI.ExecQuery("Select * from AntiVirusProduct"); "from FirewallProduct" works as well

For $objAntiVirusProduct In $colItems
      MsgBox(0, "AntiVirusProduct", $objAntiVirusProduct.displayName)
Next

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
weaponx

This method doesn't work the same in Vista as far as I know.

Share this post


Link to post
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
Sign in to follow this  

×