powershell - Powershell:与x86 powershell/ise一起运行的脚本

标签 powershell

我创建的脚本使用了组件,这些组件仅在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/

相关文章:

powershell, send key() 和 appactivate() 奇怪

vba - 使用 PowerShell 发送击键并在文本中包含百分号

powershell - 创建自定义对象并使用输出

powershell - 为什么 'continue'在Foreach-Object中的行为类似于 'break'?

powershell - CSV导入Powershell-AD

sql - Powershell:将一个下拉框中的选择用作另一个变量

powershell - 如何在 powershell 中遍历 JSON 数组

powershell - 密码中包含 "$"的 SQL Server 连接字符串

azure - 我可以将 MFA 应用密码与 Azure oauth2.0 ROPC 一起使用吗?

windows - 检查注册表值是否等于 1 无法正常工作