Forum Discussion

philp1300's avatar
philp1300
Copper Contributor
Nov 07, 2020
Solved

Evaluating Windows Application log

I am trying to evaluate the Windows Application log. Specifically Source = Windows Backup. I am running the following Script which produces the results I am looking for. $q = get-eventlog -logname a...
  • farismalaeb's avatar
    Nov 08, 2020

    philp1300 

    when it comes to evaluation, your friend should be If ( this ) {action}

     

    $q = get-eventlog -logname application -source 'edgeupdate' -newest 1
    if ($q.EntryType -like "Information"){
    Write-Host "do whatever action"}

     

Resources