How to change the application pool identity for Windows SharePoint Services administration and content virtual servers (832770)



The information in this article applies to:

  • Microsoft Windows SharePoint Services

SUMMARY

This article describes how to change the application pool identity for Microsoft Windows SharePoint Services administration and content virtual servers.
back to the top

Change the Application Pool Identity for Windows SharePoint Services Administration and Content Virtual Servers

To change the user account that is configured as the application pool identity for the administration and content virtual servers, follow these steps.
back to the top

Step 1: Add the User Account That You Want to Use as the Application Pool Identity to the Security Administrators and the Database Creators Roles in Microsoft SQL Server 2000

To assign the user account that you want to use as the application pool identity to the Security Administrators role and the Database Creators role in SQL Server 2000, follow these steps:
  1. Start SQL Server Enterprise Manager.
  2. In the left pane, under the name of the server that you want to grant access to, expand Security.
  3. In the right pane, right-click Logins, and then click New Login.
  4. Click the General tab, and then in the Name box, type the name of the user account.

    Make sure that you specify the user name by using the Domain\UserName format.
  5. Click the Server Roles tab, and then click to select the Security Administrators check box and the Database Creators check box.

    Note Make sure that you do not specify any databases for this new login on the Database Access tab
  6. Click OK, and then quit SQL Server Enterprise Manager.
Note If you want to use different user accounts for the administration virtual server and for the content virtual server, you must assign each user account to both the Security Administrators role and the Database Creators role in SQL Server.
back to the top

Step 2: Configure the Database Owner for the Windows SharePoint Services Content and the Configuration Databases

To configure the database owner for the Windows SharePoint Services content and the configuration databases, follow these steps.

Content Database
  1. On the server that is running SQL Server, start SQL Query Analyzer.
  2. In the Connect to SQL Server dialog box, specify the name of the server that you want to connect to, specify the type of authentication, and then click OK.
  3. On the Query menu, click Change Database.
  4. In the Select Database of ServerName dialog box, click the content database that you want to update, and then click OK.
  5. In the Query pane, type the following lines, where Domain\ContentAccount is the domain user account for the content virtual server and Domain\AdminAccount is the domain user account for the administration virtual server:

    DECLARE @AdminVSAccount nvarchar(255)
    DECLARE @ContentVSAccount nvarchar(255)
    SET @ContentVSAccount = N'Domain\ContentAccount';
    SET @AdminVSAccount = N'Domain\AdminAccount';
    EXEC sp_grantlogin @ContentVSAccount;
    EXEC sp_grantlogin @AdminVSAccount;
    EXEC sp_changedbowner @AdminVSAccount;
    IF NOT EXISTS (SELECT * FROM sysusers WHERE name=@ContentVSAccount)
    EXEC sp_grantdbaccess @ContentVSAccount; EXEC sp_addrolemember 'db_owner', @ContentVSAccount;

  6. On the Query menu, click Execute to run the query.

    Note If the domain user account for the content virtual server and the administration virtual server are the same user account, SQL Query Analyzer displays a message that is similar to the following when you run the query. However, the operation is completed successfully:Database owner changed.
    Server: Msg 15023, Level 16, State 1, Procedure sp_grantdbaccess, Line 127
    User or role 'domain\account' already exists in the current database.
    Server: Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 66
    User or role 'domain\account' does not exist in this database.
Configuration Database
  1. On the server that is running SQL Server, start SQL Query Analyzer.
  2. In the Connect to SQL Server dialog box, specify the name of the server that you want to connect to, specify the type of authentication, and then click OK.
  3. On the Query menu, click Change Database.
  4. In the Select Database of ServerName dialog box, click the configuration database that you want to update, and then click OK.
  5. In the Query pane, type the following lines, where Domain\AdminAccount is the domain user account for the content virtual server and Domain\AdminAccount is the domain user account for the administration virtual server:

    DECLARE @AdminVSAccount nvarchar(255)
    DECLARE @ContentVSAccount nvarchar(255)
    SET @ContentVSAccount = N'Domain\AdminAccount';
    SET @AdminVSAccount = N'Domain\AdminAccount';
    EXEC sp_grantlogin @ContentVSAccount;
    EXEC sp_changedbowner @AdminVSAccount;
    IF NOT EXISTS (SELECT * FROM sysusers WHERE name=@ContentVSAccount) EXEC sp_grantdbaccess @ContentVSAccount;
    EXEC sp_addrolemember 'db_owner', @ContentVSAccount;
    EXEC sp_addsrvrolemember @AdminVSAccount, 'dbcreator'
    EXEC sp_addsrvrolemember @AdminVSAccount, 'securityadmin'

  6. On the Query menu, click Execute to run the query.

    Note If the domain user account for the content virtual server and the administration virtual server are the same user account, SQL Query Analyzer displays a message that is similar to the following when you run the query. However, the operation is completed successfully:Database owner changed.
    Server: Msg 15023, Level 16, State 1, Procedure sp_grantdbaccess, Line 127
    User or role 'domain\account' already exists in the current database.
    Server: Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 66
    User or role 'domain\account' does not exist in this database.
back to the top

Step 3: Add the User Account That You Want to Use as the Application Pool Identity to the IIS_WPG and the STS_WPGGroups in Microsoft Internet Information Services (IIS)

To add the user account (or accounts) to the STS _WPG group and the IIS_WPG group in IIS, follow these steps:
  1. Start Active Directory Users and Computers.
  2. Click Users.
  3. In the right pane, right-click IIS_WPG, and then click Properties.
  4. Click the Members tab, and then click Add.
  5. In the Select Users, Contacts, Computers, or Groups dialog box, type the name of the user account that you want to add, and then click OK.
  6. Click OK.
  7. In the right pane, right-click STS_WPG, and then click Properties.
  8. Click the Members tab, and then click Add.
  9. In the Select Users, Contacts, Computers, or Groups dialog box, type the name of the user account that you want to add, and then click OK.
  10. Click OK.
back to the top

Step 4: Verify That the IIS_WPG Group Has Appropriate Permissions to the Content Folder of the Virtual Server

Make sure that the IIS_WPG group has Read and Write permissions to the content folder for the virtual server. For example, if the content folder for the virtual server is the C:\Inetpub\Wwwroot folder, make sure that the IIS_WPG group has Read and Write permissions to that folder.
back to the top

Step 5: Configure the User Account as the Application Pool Identity for SharePoint Central Administration

To configure the user account as the application pool identity for SharePoint Central Administration, follow these steps:
  1. Configure the user account as the application pool identity for SharePointCentral Administration. To do so, follow these steps:
    1. Start Internet Information Services (IIS) Manager.
    2. Expand ServerName, and then expand Web Sites.
    3. Right-click SharePoint Central Administration, and then click Properties.
    4. Click the Home Directory tab.
    5. Under Application settings, make a note of the application pool that appears in the Application pool box, and then click Cancel.
    6. Expand Application Pools.
    7. Right-click the application pool that you identified in step 1e, and then click Properties.
    8. Click the Identity tab.
    9. Under Configurable, specify the user account name (in Domain\UserName format) and password in the User name and Password boxes, and then click OK.
  2. Restart IIS. To do so, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open box, type cmd, and then click OK.
    3. At the command prompt, type iisreset, and then press ENTER
    4. Type exit, and then press ENTER to exit Command Prompt.
  3. Synchronize the Windows SharePoint Services Timer Service with the new user account information. To do so, follow these steps:
    1. Start SharePoint Central Administration.
    2. On the Windows SharePoint Services Central Administration page, under Server Configuration, click Configure virtual server for central administration.
    3. On the Configure Administrative Virtual Server page, click Use an existing application pool, and then click OK.
  4. Restart IIS. To do so, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open box, type cmd, and then click OK.
    3. At the command prompt, type iisreset, and then press ENTER
    4. Type exit, and then press ENTER to exit Command Prompt.
back to the top

Step 6: Configure the User Account as the Application Pool Identity for the Content Virtual Server

To configure the user account as the application pool identity for the content virtual server, follow these steps:
  1. Configure the user account as the application pool identity for the content virtual server. To do so, follow these steps:
    1. Start Internet Information Services (IIS) Manager.
    2. Expand ServerName, and then expand Web Sites.
    3. Right-click the content virtual server, and then click Properties.
    4. Click the Home Directory tab.
    5. Under Application settings, make a note of the application pool that appears in the Application pool box, and then click Cancel.
    6. Expand Application Pools.
    7. Right-click the application pool that you identified in step 1e, and then click Properties.
    8. Click the Identity tab.
    9. Under Configurable, specify the user account name (in Domain\UserName format) and password in the User name and Password boxes, and then click OK.
  2. Restart IIS. To do so, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open box, type cmd, and then click OK.
    3. At the command prompt, type iisreset, and then press ENTER
    4. Type exit, and then press ENTER to exit Command Prompt.
back to the top

REFERENCES

For additional information about how to deploy, administer, and configure Windows SharePoint Services, see the Microsoft Windows SharePoint Services 2.0 Administrator's Guide. To obtain the Microsoft Windows SharePoint Services 2.0 Administrator's Guide, visit the following Microsoft Web site:

For more information about Windows SharePoint Services, visit the following Microsoft Web site: back to the top

Modification Type:MinorLast Reviewed:9/8/2004
Keywords:kbaccounts kbConfig kbhowto kbinfo KB832770 kbAudITPRO