Security Center API
-
Wednesday, March 05, 2008 12:00 PM
Is there an API to the wscsvc?
API needed to provide such capabilities as:
- programmatically check if antivirus is ok
- add new component that will be monitored by wscsvc
Does such thing exist?
All Replies
-
Wednesday, April 09, 2008 12:52 PM
FallenGameR wrote: Is there an API to the wscsvc?
API needed to provide such capabilities as:
- programmatically check if antivirus is ok
- add new component that will be monitored by wscsvc
Does such thing exist?
yeah, i also want to konw. -
Thursday, April 10, 2008 4:54 AM
I've managed to find these links:
Windows Security Center
"You have some Non Disclosure Agreement document to sign before you get the access to the security center. The interface is not likely availble publicly. The contact information can be found at Implementing the Teredo Security Model"
And there is WMI interface:
Code SnippetSet oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\SecurityCenter")
Set colItems = oWMI.ExecQuery("Select * from AntiVirusProduct")
For Each objAntiVirusProduct In colItems
msg = msg & "companyName: " & objAntiVirusProduct.companyName & vbCrLf
msg = msg & "displayName: " & objAntiVirusProduct.displayName & vbCrLf
msg = msg & "instanceGuid: " & objAntiVirusProduct.instanceGuid & vbCrLf
msg = msg & "onAccessScanningEnabled: " & objAntiVirusProduct.onAccessScanningEnabled & vbCrLf
msg = msg & "productUptoDate: " & objAntiVirusProduct.productUptoDate & vbCrLf
msg = msg & "versionNumber: " & objAntiVirusProduct.versionNumber & vbCrLf
msg = msg & vbCrLf
Next
WScript.Echo msg
- Proposed As Answer by Fisnik Hasani Sunday, October 04, 2009 2:27 PM
-
Sunday, October 04, 2009 2:27 PMHi, Yes, they are correct!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Friday, October 09, 2009 7:42 PMHello FallenGameR:
Is this issue solved? How is the situation on your side?
Please provide some information, thanks!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Friday, November 13, 2009 8:32 PMHi FallenGameR:
How is the situation on your side?
Is this thread solved?
Please tell me!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Thursday, November 26, 2009 12:14 PMHi FallenGameR:
How is the situation on your side?
Is this thread solved?
Please tell me!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Sunday, December 27, 2009 9:45 AMHi again:
How is the situation on your side?
Is this thread solved?
Please tell me!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Saturday, January 02, 2010 2:55 PMHi again:
How is the situation on your side?
Is this thread solved?
Please tell me!
Have a nice day...
Best regards,
Fisnik
Coder24.com -
Thursday, January 12, 2012 6:42 AM
I am trying to write an EXE using VB.NET and tried the above code, but not working, pls let me know what should be done to check if the antivirus is installed and what is the definition it is using so that it will trigger an alert when the AV is non compliant, tried the above code but not working in VB.NET but runs good as VBS
-
Saturday, July 21, 2012 4:08 PMyou may use win vista or win 7
the above code for win XP or earlier to know how to differentiate between them
"root\SecurityCenter" => win XP or earlier
"root\SecurityCenter2" => win vista or later -
Tuesday, September 25, 2012 4:20 PM
Chinton, OPSWAT has a VB code sample to check if AV is installed, definition info (including whether definition is current or not)


