GD Bloggers

This is the blog site for Microsoft Global Delivery Communities focused in sharing the technical knowledge about devices, apps and cloud.
Follow Us On Twitter! Subscribe To Our Blog! Contact Us

SharePoint Powershell command problem - FeatureDependencyId are not registered

SharePoint Powershell command problem - FeatureDependencyId are not registered

  • Comments 9
  • Likes



When you run SharePoint PowerShell on your SharePoint server you get the following error:

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



Make sure the logged in user who is trying to run SharePoint PowerShell commands is having the right "SharePoint_Shell_Access" to the SharePoint_Configuration database to do so:

  • Open SQL Management Studio
  • Browse Security folder -- Logins , select the user name that is running power shell , right click properties
  • Click on User Mapping , check SharePoint_config , select SharePoint_Shell_Access


  • So what happens when you don't have that little checkbox/option for "SharePoint Shell Access"?  How do you get it there?  It's not going to be there by default with a new installation of SQL Server.

  • what happens is that you wont be able to execute powershell commands ...

    if you installed SharePoint with least permissions (i.e not assigning the farm admin as sysAdmin Db role) this permission might not be there

  • I am not able to do this operation. I am getting the below error message....

    TITLE: Microsoft SQL Server Management Studio


    Add member failed for DatabaseRole 'SharePoint_Shell_Access'.  (Microsoft.SqlServer.Smo)

    For help, click:



    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


    Cannot use the special principal 'dbo'. (Microsoft SQL Server, Error: 15405)

    For help, click:





    Can you please help me on this...

  • And when I check for this error "Cannot use the special principal 'dbo'. (Microsoft SQL Server, Error: 15405)"

    I found the below solution

  • Excellent, it worked !!

  • Please check once "services.msc" if sqlserver (sharepoint) is running or not if service is not running. please run the service it may be one of cause for "SharePoint Powershell command problem - FeatureDependencyId are not registered".

  • I had the same issue and it was resolved by running right clicking and running as administrator as my security was correct.

  • Thanks :)

  • Hi Team,
    Need help in sharepoint 2013 powershell. when I use the powershell commands getting below error.
    "no spanins have registered for sharepoint powershell 4"
    please let me know if you have any idea.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment