From cca68bdd4dc4f20c852e9c034a1e2c7dca7d64c3 Mon Sep 17 00:00:00 2001 From: deguet Date: Thu, 17 Oct 2024 09:48:12 -0400 Subject: [PATCH] Patch sur bug de raccourci --- scriptsharp/ScriptSharp/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptsharp/ScriptSharp/Utils.cs b/scriptsharp/ScriptSharp/Utils.cs index 955a48c..25d670b 100644 --- a/scriptsharp/ScriptSharp/Utils.cs +++ b/scriptsharp/ScriptSharp/Utils.cs @@ -239,7 +239,7 @@ private static void RunPowerShellCommand(string command) { ProcessStartInfo processStartInfo = new ProcessStartInfo { - FileName = "powershell.exe", + FileName = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", Arguments = $"-Command \"{command}\"", RedirectStandardOutput = true, UseShellExecute = false,