Article ID: 2796733 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

After you install Microsoft SharePoint Server 2010 and Windows PowerShell 3.0 on a server, you receive one or both of the following error messages when you start SharePoint 2010 Management Shell:

Error message 1
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
Error message 2
Microsoft SharePoint is not supported with version 4.0.30319.17929 of the Microsoft .Net Runtime.

Workaround

To work around this issue, change the Target field value for SharePoint 2010 Management Shell. To do this, follow these steps:
  1. Click Start, and then right-click SharePoint 2010 Management Shell.
  2. Click Properties.
  3. Click the Shortcut tab in the SharePoint 2010 Management Shell Properties window.
  4. Input the following value in the Target field:

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Version 2.0 -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1 ' "

Properties

Article ID: 2796733 - Last Review: December 21, 2012 - Revision: 1.0
Applies to
  • Microsoft SharePoint Server 2010
  • Microsoft SharePoint Server 2010 Service Pack 1
Keywords: 
kbsurveynew kbprb kbexpertiseinter kbtshoot KB2796733

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com