From c2aeffab5ace1552b33367dfe3f9da7de07aa171 Mon Sep 17 00:00:00 2001 From: Maurice Daly Date: Mon, 23 May 2022 07:56:44 +0100 Subject: [PATCH] Update Invoke-CustomAppReliability.ps1 --- Scripts/Invoke-CustomAppReliability.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Invoke-CustomAppReliability.ps1 b/Scripts/Invoke-CustomAppReliability.ps1 index ac2b51b..45752ee 100644 --- a/Scripts/Invoke-CustomAppReliability.ps1 +++ b/Scripts/Invoke-CustomAppReliability.ps1 @@ -136,7 +136,7 @@ $ComputerName = Get-ComputerInfo | Select-Object -ExpandProperty CsName #region APPRELIABILITY # Set Name of Log -$LogName = "ApplicationReliability" +$LogName = "AppReliability" $ReliabilityPayload = @() $ReliabilityEvents = Get-CimInstance win32_ReliabilityRecords | Where-Object { $_.EventIdentifier -match "1000|1002" -and $_.TimeGenerated -ge (Get-Date).AddHours(-24) } @@ -230,4 +230,4 @@ if ($ReliabilityEventPayload.Count -ge 1) { Write-Output $OutputMessage Exit 0 -#endregion script \ No newline at end of file +#endregion script