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
SUMMARYThis article describes how to change the application pool
identity for Microsoft Windows SharePoint Services administration and content
virtual servers. back to the topChange the Application Pool Identity for Windows SharePoint Services Administration and Content Virtual ServersTo 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 topStep 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 2000To 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:
- Start SQL Server Enterprise Manager.
- In the left pane, under the name of the server that you
want to grant access to, expand Security.
- In the right pane, right-click Logins, and
then click New Login.
- 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. - 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 - 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 topStep 2: Configure the Database Owner for the Windows SharePoint Services Content and the Configuration DatabasesTo configure the database owner for the Windows SharePoint
Services content and the configuration databases, follow these steps. Content Database- On the server that is running SQL Server, start SQL Query
Analyzer.
- 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.
- On the Query menu, click Change
Database.
- In the Select Database of
ServerName dialog box, click the content
database that you want to update, and then click
OK.
- 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;
- 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 - On the server that is running SQL Server, start SQL Query
Analyzer.
- 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.
- On the Query menu, click Change
Database.
- In the Select Database of
ServerName dialog box, click the
configuration database that you want to update, and then click
OK.
- 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' - 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 topStep 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:
- Start Active Directory Users and Computers.
- Click Users.
- In the right pane, right-click IIS_WPG,
and then click Properties.
- Click the Members tab, and then click
Add.
- 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.
- Click OK.
- In the right pane, right-click STS_WPG,
and then click Properties.
- Click the Members tab, and then click
Add.
- 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.
- Click OK.
back to the topStep 4: Verify That the IIS_WPG Group Has Appropriate Permissions to the Content Folder of the Virtual ServerMake 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 topStep 5: Configure the User Account as the Application Pool Identity for SharePoint Central AdministrationTo configure the user account as the application pool identity for
SharePoint Central Administration, follow these steps:
- Configure the user account as the application pool identity
for SharePointCentral Administration. To do so, follow these steps:
- Start Internet Information Services (IIS) Manager.
- Expand
ServerName, and then expand
Web Sites.
- Right-click SharePoint Central
Administration, and then click Properties.
- Click the Home Directory tab.
- Under Application settings, make a
note of the application pool that appears in the Application
pool box, and then click Cancel.
- Expand Application Pools.
- Right-click the application pool that you identified in
step 1e, and then click Properties.
- Click the Identity tab.
- Under Configurable, specify the user
account name (in
Domain\UserName format)
and password in the User name and Password
boxes, and then click OK.
- Restart IIS. To do so, follow these steps:
- Click Start, and then click
Run.
- In the Open box, type
cmd, and then click OK.
- At the command prompt, type
iisreset, and then press ENTER
- Type exit, and then press ENTER
to exit Command Prompt.
- Synchronize the Windows SharePoint Services Timer Service
with the new user account information. To do so, follow these steps:
- Start SharePoint Central Administration.
- On the Windows SharePoint Services Central
Administration page, under Server Configuration,
click Configure virtual server for central
administration.
- On the Configure Administrative Virtual
Server page, click Use an existing application pool,
and then click OK.
- Restart IIS. To do so, follow these steps:
- Click Start, and then click
Run.
- In the Open box, type
cmd, and then click OK.
- At the command prompt, type
iisreset, and then press ENTER
- Type exit, and then press ENTER
to exit Command Prompt.
back to the topStep 6: Configure the User Account as the Application Pool Identity for the Content Virtual ServerTo configure the user account as the application pool identity for
the content virtual server, follow these steps:
- Configure the user account as the application pool identity
for the content virtual server. To do so, follow these steps:
- Start Internet Information Services (IIS) Manager.
- Expand
ServerName, and then expand
Web Sites.
- Right-click the content virtual server, and then click
Properties.
- Click the Home Directory tab.
- Under Application settings, make a
note of the application pool that appears in the Application
pool box, and then click Cancel.
- Expand Application Pools.
- Right-click the application pool that you identified in
step 1e, and then click Properties.
- Click the Identity tab.
- Under Configurable, specify the user
account name (in
Domain\UserName format)
and password in the User name and Password
boxes, and then click OK.
- Restart IIS. To do so, follow these steps:
- Click Start, and then click
Run.
- In the Open box, type
cmd, and then click OK.
- At the command prompt, type
iisreset, and then press ENTER
- Type exit, and then press ENTER
to exit Command Prompt.
back to the
topREFERENCESFor 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: | Minor | Last Reviewed: | 9/8/2004 |
---|
Keywords: | kbaccounts kbConfig kbhowto kbinfo KB832770 kbAudITPRO |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|