我创建的脚本使用了组件,这些组件仅在32位版本的Powershell中可用。
默认情况下,Windows使用Powershell x64执行脚本,这会导致一些错误。
是一种在脚本开头设置值以强制Windows使用Powershellx86而不是x64的方法吗?
例:
using powershell(x86).exe
scriptblock
谢谢
最佳答案
您不能只启动“powershell(x86).exe”文件吗?
%SystemRoot%\ syswow64 \ WindowsPowerShell \ v1.0 \ powershell.exe
/弗雷德里克
关于powershell - Powershell:与x86 powershell/ise一起运行的脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15269176/