Repair access of administrator account to Windows SharePoint Services

Updated: February 17, 2009

Applies To: Windows SBS 2008

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

Solution   Log on to the server that is running Windows SBS 2008 by using a different administrator account than the one that is having the access problem. Delete and recreate the administrator account, and then run commands from an elevated command prompt to fix the access of the administrator account to Windows SharePoint Services.

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 Services

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

  2. Click Start, in Start Search, type cmd, in Programs, right-click cmd, and then click Run as 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, and <AdminLogonName> is the name of the administrator account that you are using, and then press ENTER.

    2. Type stsadm –o adduser –url https://companyweb –userlogin <DomainName>\<Deleted Admin’s logon name> –useremail <Deleted Admin's mail> –username <”Deleted Admin’s full user name”> –role contribute, where <DomainName> is the name of your domain, <Deleted Admin’s logon name> is the logon name for the administrator whose account was deleted, and “<Deleted Admin’s full user name>” is the full name of the administrator whose account was deleted. Press ENTER.

Note

You can use any role in the command.

3.  Type `stsadm –o siteowner –url https://companyweb –ownerlogin <DomainName>\<Deleted Admin's logon name>`, where *\<DomainName\>* is the name of your domain, and \<Deleted Admin’s logon name\> is the logon name for the administrator account that you recreated. Press ENTER.


To read the most recent version of this topic, see the [Microsoft Web site](https://go.microsoft.com/fwlink/?linkid=147064) (https://go.microsoft.com/FWLink/?LinkID=147064). The most recent version might contain additional information that was not available when Windows SBS 2008 was released.