Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On a local 64-bit machine, I can open 'PowerShell (x86)'. But if I do 'Enter-PSSession' to another machine running a 64-bit OS, it creates a 64-bit PowerShell.

In my scenario I need a 32-bit PowerShell session. How can I get one?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

I found the answer. You have to use the -ConfigurationName parameter, like this:

Enter-PSSession -ComputerName COMPUTERNAME -ConfigurationName Microsoft.PowerShell32

You can get the list of available configurations with:

Get-PSSessionConfiguration

Note that the configurations are specific to the remote machine. In my quick tests, a 32-bit OS only has Microsoft.PowerShell which is 32-bit, while a 64-bit OS has Microsoft-PowerShell for 64-bit and Microsoft-PowerShell32 for 32-bit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.