none
Cannot access the local farm

    Question

  • I've the same problem like this one:

    http://geekswithblogs.net/kjones/archive/2011/10/11/147263.aspx

    But I can't find the solution in this article.

    Wednesday, September 19, 2012 12:43 PM

Answers

  • Hello

    @jrv Do you mean this?

    Add-SPShellAdmin -UserName CONTOSO\User1

    But the failure is not solved =/

    -

    Should I close the thread and open a new one in the SharePoint forum?

    Thanks



    I think you should start by learning how to use SP.  YOu cannot add an admistratir unnless youare an administrator.

    Please study how Sharepoint works and post your questions in the SharePoint forum.  You need to be an admistrator in order to use the admin functions.  You also need to learn PowerShell.  You are missing many steps and you are not using the CmdLet help to see examples of what to do.

    Start by typing:
    help Add-SPShellAdmin -full

    Here are the requirements for accessing the shell tools.  Read carefully.

    http://technet.microsoft.com/en-us/library/ee806878.aspx#section2

    YOU must be an admin on the sharepoint manchine and an admin on teh web service.  Follow the directions.  Post any issues with setting up sharepoint in the SharePoint forum.  Specific questions about POwerSHell scripting can be asked here but we are no product support.


    ¯\_(ツ)_/¯

    Thursday, September 20, 2012 3:08 PM

All replies

  • In the blog you refer to, the user solved his problem with SQL permissions.  Have you checked this?

    Grant Ward, a.k.a. Bigteddy

    Wednesday, September 19, 2012 12:51 PM
  • Yes and no :)

    I'm not sure where I must change the permissions.

    Wednesday, September 19, 2012 12:59 PM
  • This isn't the correct forum for this question.  You should try the SQL forums:

    http://social.technet.microsoft.com/forums/en-us/category/sqlserver/


    Grant Ward, a.k.a. Bigteddy

    Wednesday, September 19, 2012 1:53 PM
  • actually the SharePOint forum would be best.  The issue is with Sharepoint permisions.  The link only states that the local admin was successful because it is added by default.

    To access Sharepoint you need to use SharePoint to add the user as an admin or use credentials to use the SharePoint CmdLets.

    In SharePOint we do not access the database directly.

    Get-SPWeb -credential dom/user -uri https://.....

    By accessing SP with the admin credential we can add teh current account to the SP site as an admin.  After that we can just access the site.  You can also be a user with update ability then use only the components that you have access to ,

    Get-SPList

    etc.

    First you need to know how to use Sharepoint.  After that you need to learn PowerSHell.

    The Sharepoint learning is not a scriping issue.  The suggestion to use credentials is a scripting issue.

    Modifying permissons or granting a user access is something that has to be done by the Sharepoint admin.


    ¯\_(ツ)_/¯

    Wednesday, September 19, 2012 2:26 PM
  • Hello

    @jrv Do you mean this?

    Add-SPShellAdmin -UserName CONTOSO\User1

    But the failure is not solved =/

    -

    Should I close the thread and open a new one in the SharePoint forum?

    Thanks



    • Edited by Markus SNU Thursday, September 20, 2012 1:57 PM
    Thursday, September 20, 2012 1:56 PM
  • Hello

    @jrv Do you mean this?

    Add-SPShellAdmin -UserName CONTOSO\User1

    But the failure is not solved =/

    -

    Should I close the thread and open a new one in the SharePoint forum?

    Thanks



    I think you should start by learning how to use SP.  YOu cannot add an admistratir unnless youare an administrator.

    Please study how Sharepoint works and post your questions in the SharePoint forum.  You need to be an admistrator in order to use the admin functions.  You also need to learn PowerShell.  You are missing many steps and you are not using the CmdLet help to see examples of what to do.

    Start by typing:
    help Add-SPShellAdmin -full

    Here are the requirements for accessing the shell tools.  Read carefully.

    http://technet.microsoft.com/en-us/library/ee806878.aspx#section2

    YOU must be an admin on the sharepoint manchine and an admin on teh web service.  Follow the directions.  Post any issues with setting up sharepoint in the SharePoint forum.  Specific questions about POwerSHell scripting can be asked here but we are no product support.


    ¯\_(ツ)_/¯

    Thursday, September 20, 2012 3:08 PM