


Write-EventLog -LogName "Application" -Source "Symantec Antivirus" -EventId "7076" -EntryType "Warning" -Message "Symantec Definitions are older than 7 days.

$writetime = (Get-ItemProperty -Path $path -Name LastWriteTime).lastwritetime $path = (Get-ItemProperty -Path $key -Name DEFWATCH_10).DEFWATCH_10 #Test for registry key path and execute if neccessary $key = 'HKLM:SOFTWARE\Wow6432Node\Symantec\Symantec Endpoint Protection\CurrentVersion\SharedDefs' # Check Symantec Endpoint Protection Antivirus Definition Dates # I will also be writing this as a SCOM management pack, and an SCCM Compliance Item.If you plan on running this as a scheduled task you’ll want to remove or comment out those lines. As it stands, in each of the “if ($writetime” blocks there is a “write-host”.#Send email if definitions are out of date # Write to the event log whether definitions are current or not #Check last write date of AV definitions and compare to a variable set for time – 7 days. # Check if Symantec Endpoint Protection is installed. In light of that, I’ve written a PowerShell script to check the last update time for SEP definitions that can either be run manually or set as a scheduled task. Many have environments where it’s used, and may not be the administrators or even able to view data from the Symantec Endpoint Protection Manager. Symantec Endpoint Protection has quite a hold on the Anti-Virus market share. Posted on JanuUpdated on NovemReading Time: 2 minutes PowerShell Script to Check Symantec Endpoint Protection Definition Updates
