ainner Posted May 13, 2009 Posted May 13, 2009 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 Jos Posted May 13, 2009 Developers Posted May 13, 2009 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.
weaponx Posted May 13, 2009 Posted May 13, 2009 This method doesn't work the same in Vista as far as I know.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now