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