Share via


Repair administrator account access to SharePoint Foundation 2010

Published: March 10, 2011

Applies To: Windows Small Business Server 2011 Standard

Problem   An administrator account was deleted and then recreated, but the administrator cannot access Windows SharePoint® Foundation 2010 by using the new account.

Solution   Log on to the server that is running Windows SBS 2011 Standard by using a different administrator account than the one that is having the access problem. Delete the administrator account that is having issues, open a command prompt with administrative privileges, and then run the commands in the following procedure to set the administrator account to access SharePoint Foundation 2010.

To delete and recreate the administrator account

  1. Open the Windows SBS Console.

  2. On the navigation bar, click the Users and Groups tab, and then click Users.

  3. Click the administrator account that you want to delete, and then in the task pane, click Remove user account.

  4. Click Yes to confirm the deletion.

  5. In the task pane, click Add a new user account, and then follow the instructions to complete the wizard.

To configure the administrator account to access Windows SharePoint Foundation 2010

  1. Log on as an administrator to the server that is running Windows SBS 2011 Standard, but do not log on using the account that you recreated in the previous procedure.

  2. Open a Command Prompt window with administrative privileges. See To open a Command Prompt window as an Administrator.

  3. Change the directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN.

  4. Run the following commands in sequence:

    1. Type stsadm –o siteowner –url https://companyweb –ownerlogin<DomainName>\<AdminLogonName>, where:

      • <DomainName> is the name of your domain

      • <AdminLogonName> is the name of the administrator account that you are using

      Press ENTER.

    2. Type stsadm –o adduser –url https://companyweb –userlogin<DomainName>\<Deleted Admin’s logon name>–useremail ``–username<Deleted Admin’s full user name>-role<role>, where:

      • <DomainName> is the name of your domain

      • <Deleted Admin’s logon name> is the logon name for the administrator whose account was deleted

      • <Deleted Admin’s full user name> is the full name of the administrator whose account was deleted

      • <role> is any role.

      Press ENTER.

    3. Type stsadm –o siteowner –url https://companyweb –ownerlogin<DomainName>\<Deleted Admin's logon name>, where:

      • <DomainName> is the name of your domain

      • <Deleted Admin’s logon name> is the logon name for the administrator account that you recreated

      Press ENTER.