mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Improve powershell flags
This commit is contained in:
parent
d6fd0d4018
commit
0d6ed34520
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue