,
#This will only send the alerts.
If (($SendAlert) -and (-not (((get-date).TimeOfDay.totalhours -ge 1) -and ((get-date).timeofday.totalhours -lt 4))))
{
$Message = @"
$server is not converting
Information: $ErrorResult
**Ok ,I just need a additional line to be added on the script to remove alert and put in a filter like
-and ($errorresult notmatch "E:\Program Files (x86)\data")** , The question is ,can this be added along these lines
If (($SendAlert) -and (-not (((get-date).TimeOfDay.totalhours -ge 1) -and ((get-date).timeofday.totalhours -lt 4)))) ? or where and how it can be added effectively?