diff --git a/Fix-WindowsHealth.ps1 b/Fix-WindowsHealth.ps1 index 935a79a..67e74d3 100644 --- a/Fix-WindowsHealth.ps1 +++ b/Fix-WindowsHealth.ps1 @@ -5,7 +5,7 @@ Set-Content -Path $tempFile -Value $(Get-Content -Path $tempFile -Encoding Unico $SFCOutput = Get-Content -Path $tempFile $TicketComment = "SFC Output:`n" ForEach ( $line in $SFCOutput ) { - If ( $line -notmatch '^Verification \d{1,3}% complete\.$' ) { $TicketComment = $TicketComment + $line + "`n" } + If ( $line -notmatch 'Verification \d{1,2}% complete\.' ) { $TicketComment = $TicketComment + $line + "`n" } } If ( $TicketID ) { Create-Syncro-Ticket-Comment -TicketIdOrNumber $TicketID -Subject "Update" -Body $TicketComment -Hidden $true -DoNotEmail $true } Remove-Item $tempFile -Force -ErrorAction SilentlyContinue