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
Open the Windows SBS Console.
On the navigation bar, click the Users and Groups tab, and then click Users.
Click the administrator account that you want to delete, and then, in the task pane, click Remove user account.
Click Yes to confirm the deletion.
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
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.
Click Start, in Start Search, type cmd, in Programs, right-click cmd, and then click Run as administrator.
Change the directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN.
Run the following commands in sequence:
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.
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.
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.