The Local Farm Is Not Accessible. Cmdlets With FeatureDependencyId Are Not Registered
I’m in the process of finalising my unattended install script for SharePoint Server 2010 and during some of my initial playing around I came across this vague error;
The Local Farm Is Not Accessible. Cmdlets With FeatureDependencyId Are Not Registered
Being early in the morning and all, I was kind of spooked as the error is not really that descriptive. Essentially what the error means is that you don’t have the necessary permissions to access the SharePoint configuration database.
In my case it was a stupid move on my part where UAC (User Account Control) was on and I didn’t run the SharePoint 2010 Management Shell as Administrator. Remember to elevate your privileges before running the shell!
For the people out there with genuine permisions issues on this error, Add-SPShellAdmin is your friend. Check out more information here;
http://technet.microsoft.com/en-us/library/ff607596(office.14).aspx
Kushdie!
– Kristof Kowalski // kristof@kowalski.ms