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






Leave a comment