Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

powershell script to monitor mcAfee status

$
0
0

Hi, 
I am very new to powershell. Is there any way through which we may monitor Mcafee update

scenario: if its not gettting updated and failing, we shall recive mail that update failed

i checked for the log file i.e C:\ProgramData\McAfee\DesktopProtection\Updatelog.txt

where all the logs are getting updated daily.

Anyway throgh which we may filter data from the text file and copy into another text file and filtering could be when it fails or the keyword"Update process failed". the same will be copied in another text file.

and in a way i can monitor the other text file.

and the text file is getting updated with timestamp


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>