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?
Timestamp of Last Definition Update for Microsoft Security Essentials via Script
ms-security-essentialsscriptingwindows 7wmi
Related Topic
- Can Microsoft Security Essentials be installed remotely to several PCs from one central PC
- How to set IP Filtering under IIS6
- Windows – How to identify a volume in WMI from a volume name reported in the event log
- Checking for missing values in WQL or (WQL/WMI filter to return `true` for desktops/servers, but `false` on laptops)
Best Answer
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)