none
Security Center API

    Question

  • 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?

    Wednesday, March 05, 2008 12:00 PM

All replies

  •  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.
    Wednesday, April 09, 2008 12:52 PM
  • 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 Snippet

    Set 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
    Thursday, April 10, 2008 4:54 AM
  • Hi, Yes, they are correct!

    Have a nice day...

    Best regards,
    Fisnik
    Coder24.com
    Sunday, October 04, 2009 2:27 PM
  • Hello 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, October 09, 2009 7:42 PM
  • Hi FallenGameR:

    How is the situation on your side?
    Is this thread solved?

    Please tell me!

    Have a nice day...

    Best regards,
    Fisnik
    Coder24.com
    Friday, November 13, 2009 8:32 PM
  • Hi 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 PM
  • Hi again:

    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 AM
  • Hi 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 PM
  • 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

    Thursday, January 12, 2012 6:42 AM
  • you 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
    Saturday, July 21, 2012 4:08 PM
  • Chinton, OPSWAT has a VB code sample to check if AV is installed, definition info (including whether definition is current or not)

    Tuesday, September 25, 2012 4:20 PM
  • wo~!  really, but do i need to pay for the usage of such component?
    Friday, December 06, 2013 4:34 AM