Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

SharePoint 2010 Management Shell does not load with Windows PowerShell 3.0


View products that this article applies to.

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.

↑ Back to the top


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 ' "

↑ Back to the top


Keywords: kbsurveynew, kbprb, kbexpertiseinter, kbtshoot, kb

↑ Back to the top

Article Info
Article ID : 2796733
Revision : 1
Created on : 1/7/2017
Published on : 12/21/2012
Exists online : False
Views : 399