Skip to content

Commit c7af0b3

Browse files
authored
Add flags to hide UIs in util_powershell_handler.py
1 parent 46982e4 commit c7af0b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utilities/util_powershell_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def run_powershell_command(
130130
"-NoProfile",
131131
"-ExecutionPolicy",
132132
"Bypass",
133+
"-WindowStyle",
134+
"Hidden",
133135
"-Command",
134136
command,
135137
]
@@ -211,4 +213,4 @@ def _stream(pipe, log_fn, label):
211213
raise RuntimeError(f"PowerShell command failed (code {rc})")
212214
else:
213215
logger.debug(f"PowerShell completed successfully (code {rc})")
214-
return rc
216+
return rc

0 commit comments

Comments
 (0)