Write-EventLog -LogName "Application" -Source "Symantec Antivirus" -EventId "7077" -EntryType "Information" -Message "Symantec Definitions are current within 7 days. 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 #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |