Is there any way to check this via VBScript or Powershell? I have briefly looked at the SecurityCenter
and SecurityCenter2
WMI classes, but neither of them look especially useful. It appears the easiest way is determining what the value of productState
via the latter in WMI to get some message that means AV thinks it's OK. Any other thoughts?
You may need to change the FCS_REGKEY_ROOT depending on the version that you have installed. This works for a recent version. Pulled from here.
C:>cscript forefrontstatus.vbs
Microsoft Forefront Client Security version: 3.0.8107.0
Engine version: 1.1.6502.0
Antivirus Definition: Version 1.97.905.0 created on 2/2/2011 6:10:51 AM
Antispyware Definition: Version 1.97.905.0 created on 2/2/2011 6:10:51 AM
Last scan: 2/2/2011 2:26:34 AM (Quick Scan)