01-05-2022 05:58 AM
I try to call this Bluetooth on/off PowerShell script using the CallExecutable step in TestStand 2020 32-bit. Apparently, it fails in step $bluetooth = $radios | ? { $_.Kind -eq 'Bluetooth' }
. However, if I switch to TestStand 2020 64-bit it works like a charm. How can I force the 32-bit version of TestStand to run the CallExecutable step in 64-bit mode? Or maybe how to force cmd.exe/PowerShell.exe in this step to run in 64-bit mode?
Solved! Go to Solution.
01-05-2022 11:07 AM
My solution is to use bat file. This bat is called using CallExecutable step in TestStand 2020 32-bit. In this bat I call ps1 file BUT using 64 bit PowerShell. Like this: %SystemRoot%\sysnative\WindowsPowerShell\v1.0\PowerShell.exe -NoProfile -ExecutionPolicy Bypass -File %ScriptPath%
01-14-2022 05:51 AM
There is even easier solution, without bat file: