Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Powershell 64 on Core i7

I'm trying to get into Powershell Workflows, however I get the following error if I attempt to use the "workflow" keyword:

Windows PowerShell Workflow is not supported in a Windows PowerShell x86-based console. Open a Windows PowerShell x64-based console, and then try again.

Common sense would tell you to open the 64bit version:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0

It doesn't seem to matter which version of powershell I open, I get the same message.

$env:Processor_Architecture always returns x86

I've tried this on both my laptops (1st Win7, 2nd Win8) and they both behave the same

$env:PROCESSOR_IDENTIFIER : 
1st PC: Intel64 Family 6 Model 37 Stepping 2, GenuineIntel 
2nd PC: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

Am I just missing something simple?

like image 411
amsprich Avatar asked Mar 23 '13 14:03

amsprich


People also ask

Is PowerShell 32 or 64-bit?

When you run Windows PowerShell, the 64-bit version runs by default. However, you might occasionally need to run Windows PowerShell (x86), such as when you're using a module that requires the 32-bit version or when you're connecting remotely to a 32-bit computer.

Where is PowerShell 64-bit?

Running the 64-bit PowerShell (C:\Windows\System32\WindowsPowerShell\v1. 0\powershell.exe) by Execute Command results in the application running in 32-bit mode.

Is PowerShell available on all Windows?

Windows PowerShell comes installed by default in every Windows, starting with Windows 7 SP1 and Windows Server 2008 R2 SP1. If you are interested in PowerShell 7 and later, you need to install PowerShell instead of Windows PowerShell.

Does PowerShell require .NET framework?

NET Framework requirements. Windows PowerShell 5.1 requires the full installation of Microsoft . NET Framework 4.5 or higher.


1 Answers

The version in SysWOW64 is the 32-bit version. WOW64 is the 32-bit emulator on 64-bit Windows (WoW means "Windows on Windows"). You need to run the version from system32, which is the 64-bit version.

like image 90
Bill_Stewart Avatar answered Sep 30 '22 04:09

Bill_Stewart