Force IgnoreWow64Redirection in scripts

net8.0
Pat Hartl 2023-11-17 21:38:37 -06:00
parent 8a408f3a18
commit f19ef09ff8
1 changed files with 2 additions and 0 deletions

View File

@ -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)