Skip to content

Commit a2bf75b

Browse files
committed
Update WingetIntunePackager.ps1
1 parent 5a64d7a commit a2bf75b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/WingetIntunePackager.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,8 @@ if (!(Test-Path $Location)) {
637637
New-Item -ItemType Directory -Force -Path $Location | Out-Null
638638
}
639639
#Encoding & error management
640-
[Console]::InputEncoding = [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new()
640+
$null = cmd /c ''
641+
$Global:OutputEncoding = [Console]::InputEncoding = [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new()
641642
$ProgressPreference = "SilentlyContinue"
642643

643644
Close-PopUp

0 commit comments

Comments
 (0)