The Local Farm Is Not Accessible. Cmdlets with FeatureDependency are not registered. How to fix this properly
So you have started to administer SharePoint 2010 using a non-farm account. You try to open the SharePoint 2010 Management Shell and you are greeted with this error:
The Local Farm Is Not Accessible. Cmdlets with FeatureDependency are not registered
You Bing this error and find a lot of blog posts that suggests you to open SQL Server Manager and give DBO permissions to all the related SharePoint databases; content, config etc.
Please don’t do that.
Here’s the proper way to give your account the needed permissions:
Open the SharePoint 2010 Management Shell with an account that already has farm permissions.
Permission the desired account using:
1
add-spshelladmin -username domain\username
That’s the proper way of doing it.
You can also check which accounts has shell admin rights:
1
get-spshelladmin
This post is licensed under CC BY 4.0 by the author.