How to change the Application Pool Identity of a WSS or MOSS web application
- Open SharePoint Central Administration, click Operations.
- Under Security Configuration, click Service accounts.
- Click the radio button beside Web application pool. Select Windows SharePoint Services Web Application. Select the application pool where you want to change the identity, for example: Sharepoint – 80.
- Make a note of the existing settings in case you need to unwind your changes.
- Select the Configurable radio button. Provide the user name and password. It helps to be explicit here and use the domain\account format (e.g. mydomain\SPService). Also be sure to use a strong password. Click OK.
- To restart the application pool, either open IIS and recycle the application pool, or open a command prompt and type iisreset -noforce.
- Open your SharePoint site in a browser to confirm that the change was successful.
This change will be automatically propagated to all web front-ends.
How to change the Application Pool Identity for SharePoint Central Administration (SCA)
Repeat these steps on each server which hosts the SharePoint Central Administration web application. If the web front-end (WFE) and application (APP) server roles are served by separate machines, SCA should be enabled on one APP server (or more) and stopped and/or removed from the WFE servers. This allows control over access to the SCA. The SCA service account should not be the same as that used for the SharePoint application pool so even if one is compromised, the other remains secure.
- Open a command prompt.
- Run: stsadm -o updatefarmcredentials -userlogin domain\username -password password
- Be patient. This may take a few minutes to run.
- To restart the application pool, either open IIS and recycle the application pool, or open a command prompt and type iisreset -noforce
- Open SharePoint Central Administration in a browser to confirm that the change was successful.
The above steps create an Administration Application Pool Credential Deployment timer job. You can see this in the Timer Job Definitions page. The job is complete when it no longer appears in the list of definitions (refresh the browser, this isn’t automatic).
How to change the default content access account for MOSS search
The content access account is used to crawl and index SharePoint content for a given Shared Service Provider (SSP). It should be different from the application pool identity and configured so that only the most recent version of each document is indexed, otherwise old versions will appear in search results.
- Open SharePoint Central Administration (SCA), and on the left below Shared Services Administration click on the Shared Service Provider with the search configuration you want to change (e.g. SharedServices1).
- Under Search, click Search settings. Click Default content access account.
- Enter the credentials, confirm the password and click OK.
How to change the Search Service account for MOSS
Note that this is the identity used to run the Search Service, it is not the identity with which content is actually crawled and indexed. This account must be a local administrator (not a domain administrator) on both the query server and the index server in order for index propagation to work. This is set automatically for you when you click OK (below), but is the first thing to verify if you get a “Query server not responding” error (see Chris Gideon’s post).
- Open SharePoint Central Administration, click Operations.
- Click Services on server, and then Office SharePoint Server Search.
- Configure the Farm Search Service Account. It is okay to use the same account as the SharePoint application pool identity.
- Scroll down and click OK.
- Wait while your changes are processed.
How to change the default content access account for WSS search
Note that the Search Service account (which runs the WSS search application) is not the same as the Content Access account (which actually indexes the content). The Search Service account may be the same as the SharePoint application pool identity. The Content Access account should be different from the SharePoint application pool identity.
- Open SharePoint Central Administration, click Operations.
- Click Services on server, and then Windows SharePoint Services Help Search.
- Configure the Service Account.
- Configure the Content Access Account.
- Scroll down and click OK.
- Wait while your changes are processed.
or
- Open a command line.
- Run: stsadm.exe -o spsearch -farmserviceaccount domain\username -farmservicepassword password
It is okay to use the same account for this service as the SharePoint Application Pool identity.
- Run: stsadm.exe -o spsearch -farmcontentaccessaccount domain\username -farmcontentaccesspassword password
This account should be different from the SharePoint Application Pool identity.
- Repeat these steps for all servers in the farm.
Source: Eli Robilliard’s World
Also Refer to:
Joel Oleson: Password change via stsadm (2006-08-22)
MSDN KB 934838: How to change the passwords for service accounts in SharePoint Server 2007 and in Windows SharePoint Services 3.0