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

When I tried to open SharePoint Management Shell, I got the following error :

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

1

Cause:

The current user don’t have a SharePoint_Shell_Access role for SharePoint_Config or not added to SP Shell Admin.

Solution:

Try to run the SharePoint Management Shell as Administrator.

0

If this solution does not solve the issue, you will need to follow the bit steps below:

  • Open SQL Management Studio > Connect to SQL Server.

Connect to SSMS

  • From Object Explorer > Security > Logins > Right clicks on the current user > Properties. (If the current user wasn’t added.  Add it).
  • From left side > Select User Mapping > Check SharePoint_Config > Check SharePoint_Shell_Access.

SharePoint Sheel Access SQL

Go back to Share Point Management Shell that should now be working properly.

Alternative Solution.

If you didn’t have access to SQL Server , or the current organization policy prevent to modify the database users Roles, So you should ask someone who has the rights to run Windows PowerShell to add your user as SP Shell Admin.

  • Open Windows PowerShell.
  • Run the following Cmdlets one by one.
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
Add-SPShellAdmin -UserName Domain\User

Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s