From f19ef09ff8c186afa06dc721015b83af4ada7f58 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Fri, 17 Nov 2023 21:38:37 -0600 Subject: [PATCH] Force IgnoreWow64Redirection in scripts --- LANCommander.SDK/PowerShell/PowerShellScript.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LANCommander.SDK/PowerShell/PowerShellScript.cs b/LANCommander.SDK/PowerShell/PowerShellScript.cs index 1d86f51..84a6d22 100644 --- a/LANCommander.SDK/PowerShell/PowerShellScript.cs +++ b/LANCommander.SDK/PowerShell/PowerShellScript.cs @@ -33,6 +33,8 @@ namespace LANCommander.SDK.PowerShell AddArgument("ExecutionPolicy", "Unrestricted"); AddModule(Path.Combine(Environment.CurrentDirectory, "LANCommander.PowerShell.psd1")); + + IgnoreWow64Redirection(); } public PowerShellScript UseFile(string path)