Poweshell Error “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered”

 
If you’re trying to connect to a SharePoint Farm using Powershell and you’ve added in the necessary cmdlet library by typing:
 
> Add-PSSnapin Microsoft.Sharepoint.Powershell
 
when you type
 
> Get-SPFarm
 
you may  get the following error:
 
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
 
This can have a number of reasons. Ulysses Ludwig has a suggestion which seems perfectly reasonable, but it didn’t help me, as I was already dbo in the database. In the end it was stupidly simple.  I needed to open Powershell as an Administrator. Doh!
 
Hope this helps somebody.
 
Cheers
 
Dave Mc
 
 
 
Advertisements

About davemcmahon81
Software Developer & Architect, User Group Leader, Speaker, Writer, Blogger, Occasional Guitarist, Man-made Global Warming Sceptic, Climate Change Believer, General Optimist but most of all proud Husband and Dad ...

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

%d bloggers like this: