From ebc98e979e3064c7f631ddfeeb0525d12d9eb2b4 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Fri, 21 Jun 2024 14:24:37 -0400 Subject: [PATCH] allow running the script adhoc to update an existing ticket --- Fix-WindowsHealth.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Fix-WindowsHealth.ps1 b/Fix-WindowsHealth.ps1 index fffe868..08b3264 100644 --- a/Fix-WindowsHealth.ps1 +++ b/Fix-WindowsHealth.ps1 @@ -1,3 +1,6 @@ +# Check the RMM runtime variable to see if it's set to 'null', if not then set the $TicketID +If ( $TicketNumber.Trim().ToLower() -ne 'null' ) { $TicketID = $TicketNumber } + # Run SFC to check the filesystem, convert the result from Unicode to UTF8, delete the intermediate $tempFile $tempFile = New-TemporaryFile $(sfc.exe /scannow) | Out-File $tempFile