Prerequisites - Run powershell scripts unrestricted

This commit is contained in:
Diogo Trindade committed 2021-05-25 22:32:57 +01:00
1 parent 42fdf44df9
commit 7325469948
2 files changed
+2 -2

No files matched your search

@@ -68,7 +68,7 @@ namespace Artemis.Core
ShowProgressBar = true;
ProgressIndeterminate = true;
int result = await ExecuteFileAction.RunProcessAsync("powershell.exe", $"-File {file} {Arguments}", Elevate);
int result = await ExecuteFileAction.RunProcessAsync("powershell.exe", $"-ExecutionPolicy Unrestricted -File {file} {Arguments}", Elevate);
Status = $"PowerShell exited with code {result}";
}
@@ -56,7 +56,7 @@ namespace Artemis.Core
ShowProgressBar = true;
ProgressIndeterminate = true;
int result = await ExecuteFileAction.RunProcessAsync("powershell.exe", $"-File {ScriptPath} {Arguments}", Elevate);
int result = await ExecuteFileAction.RunProcessAsync("powershell.exe", $"-ExecutionPolicy Unrestricted -File {ScriptPath} {Arguments}", Elevate);
Status = $"PowerShell exited with code {result}";
}