First published on TECHNET on Jan 10, 2013
It’s been a while since I wrote up a SharePoint Tidbit, but I thought I had the perfect subject here since I have hit it with a few customers.
You open SharePoint 2010 Management Shell and get the following message
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
Then if you try to run any commands that connect with the farm you get an error like the following
Get-SPSite : Microsoft SharePoint is not supported with version 4.0.30319.296
of the Microsoft .Net Runtime.
At line:1 char:1
+ CategoryInfo : InvalidData:
SPCmdletGetSite) [Get-SPSite], PlatformNotSupportedException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
This affects Windows 7/Windows 2008 R2 servers and happens when you apply the update for Windows Management Framework 3.0.
This means that you have installed PowerShell 3.0 to your server and SharePoint 2010 is not supported with that version of PowerShell (As the error says)
There are many blogs out there that tell you to do several different things to work around the issue. But my recommendation is to uninstall the update KB2506143 as that should remove PowerShell 3.0. This may require a reboot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.