Sign in to follow this  
Followers 0
ainner

Detecting antivirus presence on Windows XP

3 posts in this topic

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



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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

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  
Followers 0