Improve powershell flags

This commit is contained in:
Daniel 2021-03-29 13:50:50 +02:00
parent d6fd0d4018
commit 0d6ed34520

View file

@ -12,6 +12,7 @@ func RunPowershellCmd(script string) (output string, err error) {
// Create command to execute.
cmd := exec.Command(
"powershell.exe",
"-ExecutionPolicy", "Bypass",
"-NoProfile",
"-NonInteractive",
"[System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8\n"+script,