SharePoint PowerShell Error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

Posted Tuesday, July 12, 2011 9:05 AM by CoreyRoth

Sometimes when you try to run a SharePoint 2010 Management Shell (PowerShell), you might encounter the error below.

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

PowerShellPermissionsError

Although, the answer is not obvious given the error message, the answer is quite simple.  You tried to run PowerShell with a user account that is not an administrator in SharePoint.  In this case, I had ran it with my personal account which is not an admin and does not have access to the underlying SharePoint databases.  Hopefully, you used a “setup” account when you created SharePoint.  Execute PowerShell with that account instead.  You can do this either by logging in as that user.  You can also hold down the Shift key and right click on the SharePoint 2010 Management Shell icon and choose the Run as different user menu item.

PowerShellRunAsDifferentUser

If you don’t have a setup account, things might be a bit trickier.  You can also resolve this by running it as the farm account, but you really want to try and avoid this.

Comments

# re: SharePoint PowerShell Error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

Tuesday, July 12, 2011 9:27 AM by Ram

This also occurs when your account password is expired :) www.spmcm.me/.../Post.aspx

# re: SharePoint PowerShell Error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

Wednesday, May 16, 2012 3:28 AM by Stefan

In my case, I get this message each time I do have a powershell.exe.Config in C:\Windows\syswow64\Windowspowershell\v1.0 - and regardless whether only supportedRuntime-XML with the allowed version attribute (v2.0.50727) is present or not.

Leave a Comment

(required)
(required)
(optional)
(required)