How to load Powershell ISE 3 with powershell v2 inside? How to load Powershell ISE 3 with powershell v2 inside? powershell powershell

How to load Powershell ISE 3 with powershell v2 inside?


This is a known issue when the Windows Management Framework 3.0 update is installed (it inlcudes PS 3.0) which, as it uses .net 4.0 makes all the SP2010 cmdlets (which are 3.5), incompatible.

The console application can accept the "-version 2" switch, but as pointed out this is not compatible with the ISE.

It is a known issue, another article suggests uninstalling the WMF update and re-booting the server, which I think is the only real answer to the last part of your question.


You can do this by creating new PSSession.

Register-PSSessionConfiguration -Name PS2 -PSVersion 2.0 –ShowSecurityDescriptorUI# Please consult system admin when your run set-item and Enable-WSManCredSSP commandSet-Item wsman:localhost\client\trustedhosts -value * -Confirm:$false -ForceEnable-WSManCredSSP -Role Client –DelegateComputer * -ForceEnable-WSManCredSSP -Role Server -Force# For test purpose# Get-WSManCredSSP# get-item wsman:localhost\client\trustedhosts$cred = Get-Credential$session = New-PSSession -ComputerName $env:COMPUTERNAME -authentication credssp -ConfigurationName PS2 -Credential $credEnter-PSSession $session# 2.0 runtimeAdd-PSSnapin microsoft.sharepoint.powershell$web = Get-SPWeb http://SPSite/$web.UrlExit-PSSessionUnregister-PSSessionConfiguration -Name PS2Disable-WSManCredSSP -Role ClientDisable-WSManCredSSP -Role Server

If you don't exit PSSession, you can run 2.0 runtime command from Powershell ISE 3.