Microsoft SharePoint is not supported with version 4.0.x of Microsoft .Net Runtime

After installing a very large set of updates at the end of last year (2012) my ability to interact with my SharePoint 2010 installation via the PowerShell ISE failed. Specifically anytime I used scripts that had worked previously as well as a simple Get-SPSite, I was told:

Get-SPSite: Microsoft SharePoint is not supported with version 4.0.30319.296 of the Microsoft .Net Runtime.

After trying a few things like changing the PowerShell_ise.exe.config file to handle the v2 framework, I started searching and came across the solution:

http://blog.supermega.pro/tag/microsoft-sharepoint-is-not-supported-with-version-4-0-30319-296-of-the-microsoft-net-runtime/

Basically, the solution is to uninstall the “Windows Management Framework 3.0:” which is installed via “KB2506146 – for Windows Server 2008 SP2”.

After a quick reboot, everything is back to normal.

Personally, I think updates pushed out via Microsoft Update should be self aware, perhaps at a greater level so if a machine has SharePoint 2010 installed, then that update can not be installed. Had this happened in a production environment, then yuck…

Advertisements

One thought on “Microsoft SharePoint is not supported with version 4.0.x of Microsoft .Net Runtime

  1. mark1408 March 19, 2013 / 3:33 am

    I was faced with this yesterday when I had two SP servers to update. Thanks for posting.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s