Techibee.com

Running PowerShell v2 scripts on Windows 2012

This post will explain the procedure involved in enabling the PowerShell V2 engine in Windows 2012 server.

I got my Windows 2012 Server up today. As most of you already aware Windows 2012 comes with PowerShell V3 by default. So, that doesn’t mean that you have to upgrade all of your PowerShell V2 scripts to V3 version. There is a backward compatibility option available. But this is optional and not enabled by default. Follow the below steps to enable the backward compatibility by installing PowerShell v2 engine.

Launching the PowerShell V2 Console on Windows 2012:

You can use the below command to launch PowerShell V2 and you can run your Powershell V2 scripts from this console. You may verify the version of this console by using Get-Host cmdlet.

powershell.exe -version 2

Hope this helps…

 

 

Exit mobile version