After installing/downloading PowerShell 3.0 (part of the Windows Management Framework 3.0), opening up the SharePoint 2010 Management Shell suddenly says the following:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
PowerShell 3.0 uses the .NET 4.0 Framework, whereas the SharePoint 2010 CmdLets (and .NET API) requires the .NET 2.0/3.5. because of COM components under the covers.
The fix is to run PowerShell under .NET 2.0 mode by calling powershell.exe with the -version 2 switch.
Update the default shortcut, by editing the properties and change the target:
From:
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1 ' "
to:
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit -version 2 " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1 ' "
Then you will be back in business next time you launch the shell.






