# How to run PowerShell remotely in 32-bit(!) mode

**URL:** https://www.finalbuilder.com/forums/t/how-to-run-powershell-remotely-in-32-bit-mode/1999
**Category:** Discussion
**Created:** [June 18, 2012, 9:39am UTC](https://www.finalbuilder.com/forums/t/how-to-run-powershell-remotely-in-32-bit-mode/1999 "2012-06-18T09:39:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 18, 2012, 9:39am UTC](https://www.finalbuilder.com/forums/t/how-to-run-powershell-remotely-in-32-bit-mode/1999/1 "2012-06-18T09:39:22Z")

</div>

I need a way to execute a PowerShell script remotely but the script has to be executed by the 32-bit version of the PowerShell. How can I achieve this?

Here is a test script that&nbsp;

> if ([System.IntPtr]::Size -eq 4) {  
> &nbsp;&nbsp; Write-Host "Script is execute by x86 version of PowerShell."  
> }

I already tried the following javascript placed in the BeforeAction event but with no success:

> var opt = GetOptionsObject("Windows PowerShell");  
> if (opt) {  
> &nbsp; opt.Properties.PropertyAsString("PowershellLocation") = "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe";  
> }

It seems that this will work only, if the script is executed locally, right?

Any ideas?

Kind regards,  
Marcus

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 21, 2012, 12:34pm UTC](https://www.finalbuilder.com/forums/t/how-to-run-powershell-remotely-in-32-bit-mode/1999/2 "2012-06-21T12:34:18Z")

</div>

Hi Marcus   
  
 We don’t have any built in support for remote powershell execution. The only suggestion I can give is to use the psExec action, but you will need to get the script file onto the remote machine first.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 21, 2012, 12:34pm UTC](https://www.finalbuilder.com/forums/t/how-to-run-powershell-remotely-in-32-bit-mode/1999/3 "2012-06-21T12:34:47Z")

</div>

Any powershell script that finalbuilder executes is running locallly.
