SharePoint 2013 Management Shell – Local Farm is not Accessible


Hi all 🙂

SharePoint 2013 has a lot in common with older versions, especially its love of PowerShell and related security controls. If you’re trying to run some local commands, even before you register SharePoint with:

Add-PSSnapIn Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

You may be faced with this error message: “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”
blog1

This isn’t much different in 2013. Just as in SharePoint 2010, this happens for one of two reasons:

•The local account doesn’t have rights to the SharePoint_Config database (dbo or sa)

•You launched PowerShell or the PowerShell ISE without choosing Run as Administrator.

Quick tip – Windows 8 and Windows Server 2012, with the Modern UI, make it really easy to miss the Run as Administrator option. From the Start Menu screen, right mouse clock in an open area to pop up the All Apps charm at the bottom of the screen. Find the PowerShell ISE app and, again, right mouse click on it to fly in the Charms shown below:

Blog2

Select Run as administrator and you should be PowerShell-ing like a SharePoint champion.

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s