How to Get SharePoint PowerShell to use .NET 2

Posted by EoRaptor013 on Stack Overflow See other posts from Stack Overflow or by EoRaptor013
Published on 2012-10-15T22:57:46Z Indexed on 2012/10/15 23:01 UTC
Read the original article Hit count: 209

Filed under:
|
|

I'm having a couple of problems with PowerShell. First, the PS configuration installed by SharePoint 2010 keeps popping this message:

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

I've googled that, and given everybody and their second cousin Sharepoint_Shell_Access to the config DB, with no luck. So, I wanted to try some of the PS commands. In this case, however, I'm getting a different error:

Microsoft SharePoint is not supported with version 4.0.30319.17929 of the Microsoft .Net Runtime.

I get that SP can't use .NET 4.0 or 4.5, but I can't find any suggestions on how to get PS to use the "right" version of .NET. I've found some references for something called PowerGUI, and changing the psgui.exe.config, but I don't have that.

Does anybody have any suggestions on how to solve the .NET version problem?

Thanks.

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about powershell