I am trying to deploy a SharePoint web part (deployed on a SharePoint 2007 server) to a new SharePoint 2010 server. I am connected to it via Remote Desktop Connection. When I run (as admin) Windows PowerShell the first thing it tells me is that "The local farm is not accessible." I read that I need to run PowerShell as an admin and make sure I add my user account to the farm admin group. How do I do that?

Are there other steps I need to take as well? I am new to this, so I don't know where everything is.

  • which version of sharepoint you using ?
    – Nikhil J
    Commented Aug 14, 2014 at 23:33
  • Also make sure that you are running PowerShell as administrator. Right-Click -> Run As Administrator. Commented Aug 15, 2014 at 0:29

2 Answers 2


Make sure the logged in user who is trying to run SharePoint PowerShell commands is having the right "SharePoint_Shell_Access" to the SharePoint_Configuration database to do so.


OR using command



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

  • First off, thanks for the answer. None of the articles I Googled ever detailed how to do this. Unfortunately, it's telling me that "A positional parameter cannot be found that accepts the argument 'Solution'". But that's another issue. I also ran Add-SPShellAdmin and that says the local farm is still not accessible. What's going on?
    – Chris
    Commented Aug 14, 2014 at 23:48
  • U didnt answer my question , which versiom of sp ?
    – Nikhil J
    Commented Aug 15, 2014 at 0:51
  • sharepoint.stackexchange.com/questions/53953/…
    – Nikhil J
    Commented Aug 15, 2014 at 0:52
  • SP Server 2010.
    – Chris
    Commented Aug 18, 2014 at 15:30

Are you running powershell or sharepoint management shell? Can you access Central Admin? If not you have a problem with your farm topology if you can then try running SharePoint management shell instead it may be that your version of vanilla powershell in missing the necessery snapins to connect to sharepoint.

  • So use SharePoint Management Shell, and do everything as I would normally on PowerShell?
    – Chris
    Commented Aug 18, 2014 at 15:31
  • Exactly. As a general practice I use SharePoint Management Shell for anything involving SharePoint.
    – JonS
    Commented Aug 18, 2014 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.