Friday, March 7, 2014

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered            

Problem occurs when you start SharePoint 2010 Management Shell (Power shell) but don’t get access to the farm. You would be unable to run commands. 

 Solution 1:Run Power shell with another user who don’t see above message e.g. Farm Admin


 Solution  2: 
  
1.    Execute “Add-SPShellAdmin -Username domain\User”(required user that you want to get Access to Power shell)
2.    Successful execution will ensure that desired user is Shell Admin and can execute commands. 
                            http://technet.microsoft.com/en-us/library/ff607596.aspx 

Solution  3:

As you can see it is Power Shell Version 3.0 which doesn’t support SharePoint 2010

to resolve the issue, change Power Shell start menu short cut path and added –version 2.0 switch parameter, below is the complete path with –version 2.0 switch.

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

Add –version 2.0 switch;

By doing this  could run Power Shell 2.0 which support SharePoint 2010 commands

  

Please Comment if you need Any Help.Your Feed back is always Welcome.I Am Happy to Help !!!!!

ShareThis

X