When you run powershell on your server you get the following error:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
Make sure the logged in user has rights to the SharePoint_Configuration database
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered, 7.4 out of 10 based on 58 ratings
[…] NOTE: If you receive the “The Local Farm is Not Accessible” error see the following article: http://www.sharepointassist.com/2010/01/29/the-local-farm-is-not-accessible-cmdlets-with-featuredepe… […]
[…] found several articles with suggestions here and here. Having the appropriate SQL Server access is required but neither approached worked for […]
Hi,
I have recently cloned one of my Sharepoint 2010 VM. I tried to use Rename-SPServer options. However, when I try to run these commands in PowerShell, it gives me an error saying, “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.” .Search on internet and your blog entry provided me with two possible solutions/remedies. (1) To ensure that the logged in user has Sharepoint_Shell_Access role membership in Sharepoint_Config database, and (2) To run the Management Shell as Administrator. Both the scenarios are true in my case. Can you suggest any other alternative solution?
Thanks in anticipation.
I had a samilar issue, but my problem was not running PowerShell utility as administartor.
Follow the steps below
1. Go to Start menu
2. Right click on PowerShell and select run as administrator option
3. This will open up PowerShell utility
4. Now type in add-PSSnapin Microsoft.SharePoint.PowerShell and hit Enter
5. Type in any other PowerShell command and Enter
Direct database changes are not supported by Microsoft, please use
Add-SPShellAdmin
http://technet.microsoft.com/en-us/library/ff607596.aspx
Thank you thank you!
run sharepoint management shell with the service account
$db = Get-SPDatabase | Where {$_.Name -eq “SharePoint_ConfigDB”}
Add-SPShellAdmin “domain\user_to_add” -database $db
If you want to give the user shell access to all dbs in the farm
run sharepoint management shell with the service account
$dbs = Get-SPDatabase
foreach($d in $dbs) {Add-SPShellAdmin “domain\user_to_add” -database $d}
Very nice
As it turns out, I get this message when I create / use a file C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.config
[…] Follow this article to fix the error: http://www.sharepointassist.com/2010/01/29/the-local-farm-is-not-accessible-cmdlets-with-featuredepe… […]
[…] Article from: http://www.sharepointassist.com/2010/01/29/the-local-farm-is-not-accessible-cmdlets-with-featuredepe… […]
[…] administrator. However, if do the networking side of SharePoint as well, I found that this link on SharePoint Assist and think it will help […]
