I have Windows server 2012 installed.

When I open up Powershell ISE I get an error while using SharePoint 2010. IT works fine with SharePoint 2010 management Shell.

Microsoft SharePoint is not supported with version 4.0.30319.34014

So far I have run the 1) SharePoint.ps1 script in the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration folder in Windows Powershell ise

2) Ran powershell -version 2 in Windows powershell ise

3) C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe " C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\sharepoint.ps1"

  • Is it SharePoint 2010 or 2013? Sep 1, 2015 at 17:35
  • It is Sharepoint 2010 Sep 1, 2015 at 17:36

2 Answers 2


Their is compatibility issue with SharePoint 2010 and version 4. You need to switch back to version 2.

Note: This will not uninstall version 3, it will simply launch a new powershell instance that uses version 2.

To work around this issue, change the Target field value for SharePoint 2010 Management Shell. To do this, follow these steps:

  • Click Start, and then right-click SharePoint 2010 Management Shell.
  • Click Properties.
  • Click the Shortcut tab in the SharePoint 2010 Management Shell Properties window.
  • Input the following value in the Target field:

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Version 2.0 -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\sharepoint.ps1 ' "

SharePoint 2010 Management Shell does not load with Windows PowerShell 3.0

Check this: SharePoint 2010, server 2012 and Powershell 3: Microsoft SharePoint is not supported with version 4.0.30319.17626 of the Microsoft .Net Runtime

  • I dont get an issue when i open sharepoint 2010 management shell but i get the above error when i open windows powershell ise Sep 1, 2015 at 17:51
  • yes that is the issue with Windows powershell ISE...check both blogs
    – Waqas Sarwar MVP
    Sep 1, 2015 at 17:59
  • So how do I fix the issue Sep 2, 2015 at 10:02
  • workaround already mentioned( provided by MSFT), You have to input the target value.
    – Waqas Sarwar MVP
    Sep 2, 2015 at 13:41

This doesn't work with Powershell ISE. I've pasted in the "target" above, but it was set to exactly that before.

The correct information is that one can't run Powershell ISE version 2 after version 3 is installed (so on the 2012 server I use, this can't be done). Here is a relevant link: https://stackoverflow.com/questions/18919862/start-powershell-ise-with-the-2-0-runtime

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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