diff --git a/WindowsMaintenanceReport.ps1 b/WindowsMaintenanceReport.ps1 index 2a7c22b..6112bcd 100644 --- a/WindowsMaintenanceReport.ps1 +++ b/WindowsMaintenanceReport.ps1 @@ -246,7 +246,7 @@ $computerName = $env:COMPUTERNAME $reportName = 'windows_system_report_' + $computerName + '_' + $timestamp + '.txt' $reportPath = Join-Path $OutputDirectory $reportName -$encoding = New-Object System.Text.UTF8Encoding($false) +$encoding = $encoding = [System.Text.Encoding]::ASCII $writer = New-Object System.IO.StreamWriter($reportPath, $false, $encoding) try {