• ARTICLES
SEARCH

How-To Geek

How to Run PowerShell 2 and 3 Concurrently in Windows 8

image

Windows 8 comes with a shiny new version of PowerShell, version 3. But while playing around with it, I have noticed a lot of scripts that I had written for version 2 are now throwing errors, so here’s how to get version 2 back while not losing version 3.

Launching PowerShell 3

Because it’s installed by default we don’t have to do anything special, just switch to the Start Screen and type PowerShell and hit enter. We can see our version by using the $PSVersionTable special variable.

Launching PowerShell 2

The awesome thing about Windows 8 is that Microsoft left the PowerShell 2 engine intact, that means we can easily access it. To get started create a new shortcut on your desktop.

The PowerShell directory has been pulled into our Path at system startup so we can reference the exe by name and pass it a version parameter, then click next.

PowerShell –Version 2

Name the shortcut PowerShell 2 and click finish.

If you double-click on your new shortcut and check the PowerShell version with $PSVersionTable, you will see that its now on version 2.

That’s all there is to it.

Don't show again X

Don't Upgrade to Windows 8 Until You Read This Book!

Windows 8 can be confusing, but our comprehensive guide will teach you everything the easy way.


There are over a thousand screenshots and pictures to walk you through everything there is to know about Windows 8, and it's written in the classic How-To Geek style that you know and love.


Get Your Copy Now  

Comments (1)

  1. rob k

    Interesting that Microsoft kept PowerShell v2.0 in the v1.0 sub-directory. :-) I remember that being a cause of confusion for many in Windows 7 ;-)

Taylor Gibb is a Microsoft MVP and all round geek, he loves everything from Windows 8 to Windows Server 2012 and even C# and PowerShell. You can also follow him on Google+

  • Published 06/29/12

RECOMMENDED POSTS