I am running PowerShell 2 on a Windows Server 2008 R2 Standard Server (German).
I want to use the SharePoint 2010 Management Console but am getting the following Errors:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
and
Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime.
when calling get-spfarm.
I get the following when I try to identify the Version:
It uses the CLR Version 4.0.30319.1:
This seems to not be supported by SharePoint.
I than tried to run PowerShell as follows:
PowerShell.exe -Version 2.0
But somehow PoweShell still uses the CLR version 4.0.30319.1:
A lot of people on the internet have stated that they had this problem when the windows update KB2506143 was installed. This is not installed on my machine.
How can I force PowerShell to use the 2.0 Version of the .NET CRL?