How to launch 64-bit powershell from 32-bit cmd.exe?

前端 未结 2 1401
太阳男子
太阳男子 2020-12-14 05:46

I know it\'s a weird question but I am locked into a third party vendor which launches a 32-bit cmd.exe on a target 64-bit Windows Server 2008 R2 clustered server. From here

2条回答
  •  醉梦人生
    2020-12-14 06:53

    syswow64 lets you run 32 bit system executables from 64 bit code. sysnative lets you run 64 bit system executables from 32 bit code.

    So, you need to run:

    %SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe
    

提交回复
热议问题