Jump to content

Recommended Posts

Posted

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

  • Developers
Posted

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...