SharePoint 2013: How to change all service account passwords
Introduction
This posting collates all of the various different procedures associated with changing SharePoint 2013 service account passwords. Changing passwords is a common task on the departure of a SharePoint admin. This posting documents this critical task. This posting assumes that neither the farm service nor any other SharePoint service account (including the UPS profile service account), has been provisioned with AD write access. The SharePoint service accounts that will be engaged here typically include:
- SPADMIN - SharePoint Setup User Administrator account. not really a service account but included anyway as part of the Sharepoint account pantheon.
- SPFARM - this is the server farm and database access account; also used for example by, User Profile Synchronization Service, Security Token Service Application and AppPool
- SPSEARCH - Search service application identity, for example, Search Host Controller Service, SharePoint Server Search, Search Service AppPool, Search Admin Web Service.
- SPCONTENT - used by the Search service application as the crawling account.
- SPAPP - used as the application pool identity for those application pools used by the content web applications and the My Site web application.
- SPSERVICE - general service application identity account, for example, C2WTS, Distributed Cache, Sandbox Code Service, SharePoint Hosted Services and application pools (eg, App Mgmt, BDC, Excel Calc, MMS, Secure Store, UPSA, Visio, Word Auto, etc).
- SPSQL - typically used to run the SQL Server service and the SQL Server Agent service.
- SPSUPERR - used by object caching service to impersonate standard viewer.
- SPSUPERU -used by object caching service to impersonate standard full control.
- SPWORKFL - TBD
- SPPROFILE - used by UPS to interrogate Active Directory and download user profile information from the AD.
Procedure
- SPADMIN: Change SharePoint Setup User Administrator Account Password
- Description
- Standard domain account.
- This account is specially provisioned and used during initial deployment, and it is the account that should be used for all configuration tasks, such as executing PSCONFIG after installing a cumulative update. It is also the account that has been configured with special privileges to launch the SharePoint Management Shell and run SharePoint-related PowerShell scripts. This account is not used in any service capacity. Therefore, its password can be changed straightforwardly like one would any other user account.
- I use this account also when installing cumulative SharePoint patches. I have been informed by Stefan Gossner that it isn't necessary to use this account when installing patches and that any domain account having local admin privileges will do. However, this is my policy and it has served me well over numerous patching sessions over many years.
- Type
- Unmanaged
- Password Change Procedure
- The procedure for changing the password for this user account is that same as changing the password for any other AD user account: 1) Launch Active Directory Users and Computers, 2) Right-click on the account and choose Change Password, and 3) follow the prompts.
- Description
- SPFARM: Change SharePoint Server Farm Account Password
- Description:
Standard domain account.
This account is used to configure and manage the server farm; it acts as the application pool identity for the SharePoint Central Administration web application and it is this service account under which the SharePoint Foundation Workflow Timer Service runs. Generally, these services and service applications use this account by default:
- Farm Account
- Windows Service - User Profile Synchronization Service
- Service Application Pool - SecurityTokenServiceApplicationPool
- Service Application Pool - SharePoint Web Services Default
- Service Application Pool - SharePoint Web Services System
Additionally, you will see these Windows Server services provisioned to use this account by default:
- Forefront Identity Manager Service
- Forefront Identity Manager Synchronization Service
- SharePoint Timer Service
You will need to use PowerShell to change this SharePoint Managed Account password in SharePoint rather than through the Central Administration Managed Accounts interface. The reason being that you may not have access to this web interface once you change the farm server account password, which is the identity for the web application that hosts the Central Administration website. The next section here walks you through this process.
- Type
- Partially Managed.
- Having this account in SharePoint Managed Accounts will simplify some changes that you need to make, but others will still need to be done manually.
- Password Change Procedure:
Change the password in AD Users and Computers as you would normally.
Restart all farm servers on which SharePoint is installed.
Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
Launch an elevated SharePoint Management Shell.
Execute the following:
$username="DOMAIN\spFarm"
$newpassword=ConvertTo-SecureString -String "password" -AsPlainText -Force
Set-SPManagedAccount -Identity $username -ExistingPassword $newpassword -UseExistingPassword:$trueThis can take a minute or two to complete. There's a lot to update here and these changes are intricate.
Now, open the Windows Server Services control panel on the SharePoint Server machine you are currently logged into, and then sort by the Log On As column.
Scroll down until you see the services having the server farm account (eg, spFarm).
For each of these services: 1) verify that it is running; 2) if its Startup Type has been changed to Disabled, change it back to Auto; 3) if it is not running then start it; 4) if on trying to start it, it prompts you for logon information, enter the appropriate logon info, including the new password, and then start it.
Having done this for this SharePoint Server, repeat steps 7 - 9 on each of the other SharePoint servers in the farm.
Now, connect back to Central Administration (from any SharePoint server), and then navigate to CA > System Settings > Services on Server.
Start any service here that should be started but that stopped after you changed the password. In particular, verify that the User Profile Synchronization Service is started (See Note 2, below).
- Summary:
- Changing the SharePoint farm server account is the most operationally sensitive. If this account is unable to authenticate, it will cause your farm to be nonoperational.
- It's important to restart SharePoint servers after implementing this password change. This commits the change. If you don't, some services and service applications may function and others may not causing your farm to function in an indeterminate state.
- It can take some time for the password change to be recognized by SharePoint, depending on the refresh frequency of your domain controllers.
- Description:
- SPSEARCH: Change the SharePoint Search Service Account Password
- Description:
- Standard domain account.
- This account is used as the Search service application (SSA) identity.
- If you have deployed your search service using this approach, it will be the identity for all of the usual SharePoint 2013 SSA components, except for the Crawl component, which is configured to use the SPCONTENT account.
- Changing the password for this service account is easier than for the farm server account. You still need to change the password first in AD using the usual method. However, in SharePoint, rather than having to use PowerShell, you can change the SSA service account using the Central Administration Managed Accounts interface. The next section walks you through this process.
- Type
- Managed
- Procedure
- Change the password in AD Users and Computers as you would normally.
- Restart all farm servers on which SharePoint is installed.
- Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
- Launch Central Administration.
- Navigate to: CA > Security > General Security > Configure Managed Accounts.
- Look for the Search service account (eg, spSearch), and then click the edit icon next to it.
- In the Credential Management section, check Change password now.
- Next, also in this section, select Use existing password and then enter the password.
- Scroll down, and then click OK. The page will be busy for less than a minute. Once it returns, move on to the next step.
- On the Windows Server you are currently logged into, open the Windows Server Services control panel.
- Sort on the Log On As column, and scroll down to find these two services: SharePoint Search Host Controller and SharePoint Server Search 15.
- Verify that these both have status Running. If they are stopped, start them.
- Repeat the previous step for each of the other SharePoint servers.
- Now, while logged into any SharePoint server, launch Central Administration, and then navigate to Manage services on server.
- Scroll down to the bottom and look for these two SharePoint services: Search Host Controller Service and SharePoint Server Search.
- Verify that these SharePoint services are started. If they are not started, start them.
- Repeat the previous step for each of the other SharePoint servers in the farm.
- Lastly, in Central Administration, navigate to the Farm Search Administration page and then to the Search Service Administration page.
- Review the Search Application Topology section: do you see all green checks there? If so, you're done. If not, wait awhile, and then refresh: it can take a minute or two for the new authentication information to propagate to all the components of the SSA and then for these components to update their health information back to the Search Service Admin page.
- Summary
- Changing the Search Service Application service account is fairly simple - particularly if you have deployed the SSA to use a single service account for all SSA components except the Crawl component.
- If your farm has deployed its SSA using separate service accounts for the different SSA components, then simply repeat the above steps for each of the other SSA service accounts.
- Description:
- SPCONTENT: Change Search Service Application Content Access Account
- Description
- Standard domain account.
- This is the account used by the farm's SSA to actually crawl content.
- You can see it configured by navigating to the Search Administration page.
- Type
- Unmanaged
- Procedure
- Change the password in AD Users and Computers as you would normally.
- Restart all farm servers on which SharePoint is installed.
- Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
- Launch Central Administration.
- Navigate to: CA > Farm Search Administration > Search Administration.
- In the System Status section of this page (top section usually), look for Default content access account.
- Look across to the right, and then click on the account shown there.
- Enter the password for this account, and then click OK.
- Launch an Incremental Crawl of any content source and wait for it to complete.
- Check the Search Crawl Log and verify that there are no entries there that include such descriptions as "Access Denied" or "Update password".
- Description
- SPAPP - Change the Application Service Account Password
- Description
- Standard domain account.
- This account is generally used as the content web application pool identity.
- May also be used as the identity for the Work Management Service Application (WMSA).
- Type
- Managed (if used for content web applications and WMSA)
- Procedure
- Change the password in AD Users and Computers as you would normally.
- Restart all farm servers on which SharePoint is installed.
- Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
- Test content web applications by trying to connect to them. You should see HTML 503 Service Unavailable messages in the browser.
- Remote into a farm application server using the SharePoint Setup User Admin Account (eg, spAdmin).
- Launch Central Administration.
- Navigate to: CA > Security > General Security > Configure Managed Accounts.
- Look for the App service account, and then click the Edit icon next to the title.
- In the Credential Management section, check Change password now.
- Next, also in this section, select Use existing password and then enter the password.
- Scroll down, and then click OK. The page will be busy for less than a minute. Once it returns, move on to the next step.
- Remote into a WFE.
- Launch an elevated command shell.
- Execute IISRESET, and then wait for it to complete.
- Repeat steps 5-7 for each WFE in the farm.
- Try connecting to each of the content web applications of the farm. You may get the usual "Sorry...". This is expected and is due to time out behavior: the IISRESET initiates a complete recompile of each of the web applications on the WFEs. Keep trying.
- Once you verify the content web applications are back up, try hitting your My Site and your OneDrive. Here too you may experience errors presented in the browser. This is expected. The My Site web application was also recompiled (if they are co-hosted with your content web applications).
- Summary
- The SharePoint App service account (spApp) is typically used with content web applications and the Work Management Service Application (this is created and configured automatically for you during normal install).
- Managing this web application AppPool identity via SharePoint Managed Accounts makes changing this particular password a snap.
- An IISRESET is absolutely necessary after restarting SharePoint servers and then changing the password in Managed Accounts. if you don't do this, you'll experience 503 Service Unavailable errors.
- Description
- SPSQL - Change the SQL Server Service Password
- Description
- Standard domain account.
- Used as the identity for the SQL Server Service.
- It may also be used as the identity for the SQL Server Agent Service.
- For this procedure, the SQL Server Browser instance is assumed to be running under the NT AUTHORITY\LOCALSERVICE account.
- Type
- Unmanaged
- Procedure
- Shutdown all SharePoint farm servers
- Change the password in AD Users and Computers as you would normally.
- Restart SQL Server.
- Remote into the SQL Server instance using an account that is a member of the local admin group (eg, spAdmin).
- Launch SQL Server Configuration Manager (Local).
- In the left navigation panel, open SQL Server Configuration Manager (Local) > SQL Server Services. Typically the second item below SQL Server Configuration Manager (Local).
- Right-click on the SQL Server instance (eg, spSQL), and then select Properties.
- Enter the new password in the Password and Confirm Password fields, and then click OK.
- At the prompt to restart the service, click Yes.
- Repeat for the SQL Server Agent service.
- Exit SQL Server Configuration Manager.
- Launch SQL Server Management Studio (SSMS) and connect to this SQL Server instance.
- In the left Object Explorer panel, verify that a green arrow icon is displayed over the SQL Server name.
- Exit SSMS.
- Start the rest of the farm servers.
- Summary
- The SharePoint SQL Server service account is unmanaged.
- Changes to the password are transparent to SharePoint and are not stored anywhere in SharePoint.
- In my opinion, best practice when changing the SQL Server service account password is to shutdown SharePoint whilst this account is worked on; and then only start up the farm's SharePoint servers once the farm's backend is fully operational and all services are running again. This avoids at the least the appearance of numerous critical system and application events appearing in server logs.
- Description
- SPSUPERR - Change the Farm Super Reader Account Password
- Description
- Standard domain account.
- It is not a service account.
- Supports object caching when Publishing feature is enabled for the web application.
- Type
- Unmanaged.
- Though this is an unmanaged account, it's still helpful to use Central Administration Managed Accounts capability so as to test password changes.
- Procedure
Change the password in AD Users and Computers as you would normally.
Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
Launch Central Administration.
Navigate to: CA > Security > General Security > Configure Managed Accounts.
Look for the super reader account, and then click the Edit icon next to the title.
In the Credential Management section, check Change password now.
Next, also in this section, select Use existing password and then enter the password.
Scroll down, and then click OK. The page will be busy for less than a minute.
It may take a few seconds for the password change in AD to propagate. This means that you may likely still be able to enter the old password one or more times here before you get an error message indicating that the password is the wrong one.
That's it. Nothing more to do. These are not service accounts.
- Summary
- Entering the super reader account into Managed Accounts has absolutely no impact: no SharePoint services and applications will obtain the super reader account from Managed Accounts.
- SharePoint does not need to authenticate these accounts since they are impersonated. See References 4.1 and 4.5 for additional detail on this account.
- Description
- SPSUPERU - Change the Farm Super User Account Password
- Description
- Standard domain account.
- It is not a service account.
- Supports object caching when Publishing feature is enabled for the web application.
- Type
- Unmanaged
- Though this is an unmanaged account, it's still helpful to use Central Administration Managed Accounts capability so as to test and verify password changes.
- Entering the super user account into Managed Accounts has absolutely no impact and no SharePoint services and applications will obtain the super user account from Managed Accounts.
- Procedure
Change the password in AD Users and Computers as you would normally.
Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
Launch Central Administration.
Navigate to: CA > Security > General Security > Configure Managed Accounts.
Look for the super user account, and then click the Edit icon next to the title.
In the Credential Management section, check Change password now.
Next, also in this section, select Use existing password and then enter the password.
Scroll down, and then click OK. The page will be busy for less than a minute.
It may take a few seconds for the password change in AD to propagate. This means that you may likely still be able to enter the old password one or more times here before you get an error message indicating that the password is the wrong one.
That's it. Nothing more to do. These are not service accounts.
- Summary
- Entering the super reader account into Managed Accounts has absolutely no impact: no SharePoint services and applications will obtain the super reader account from Managed Accounts.
- SharePoint does not need to authenticate these accounts since they are impersonated. See References 4.1 and 4.5 for additional detail on this account.
- Description
- SPWORKFL - Change the Farm Workflow 2013 Service Account Password
- Description
- Standard domain account.
- TBD
- Type
- Managed.
- Procedure
- TBD
- Summary
- TBD
- Description
- SPSERVICE - Change the Farm Service Application Service Account Password
- Description
- Standard domain account.
- Used as an identity for C2WTS, Distributed Cache, Sandbox Code Service, SharePoint Hosted Services and application pools (eg, App Mgmt, BDC, Excel Calc, MMS, Secure Store, UPSA, Visio, Word Auto, etc).
- May also be used as the identity for Distributed Cache.
- Type
- Managed
- Procedure
Change the password in AD Users and Computers as you would normally.
Restart all farm servers on which SharePoint is installed.
Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
Launch Central Administration.
Navigate to: CA > Security > General Security > Configure Managed Accounts.
Look for the Service service account (eg, spService), and then click the edit icon next to it.
In the Credential Management section, check Change password now.
Next, also in this section, select Use existing password and then enter the password.
Scroll down, and then click OK. The page will be busy for less than a minute. Once it returns, move on to the next step.
Check Windows Server services on each machine hosting SharePoint. Start any SharePoint and SharePoint-related services that are not running and that should be running. In particular, check those services that might be running under the Service service account, such as Distributed Cache (AKA AppFabric Caching Service), Claims to Windows Token Service and so on.
From experience, the AppFabric Caching Service will restart automatically after updating the Service service password in Managed Accounts. However, the Claims to Windows Token Service will not, and you must restart it manually.
That's it. You're done.
- Summary
- The key thing to keep in mind here is that, even though this is a managed service account, it is still useful to check all services using this service account to verify that they did indeed restart successfully.
- Description
- SPPROFILE - Change the User Profile Synchronization Account
- Description
- Standard domain account.
- Typically used to read AD user profiles and copy that information to SharePoint user profiles.
- At a minimum, in order to read AD objects and replicate them to SharePoint, this account requires the Active Directory permission Replicate Directory Changes. This permission enables this service account to read Active Directory objects and to discover whether any of these objects have been changed in the domain.
- Type
- Unmanaged
- Procedure
- Change the password in AD Users and Computers as you would normally.
- Restart all farm servers on which SharePoint is installed.
- Next, remote into any SharePoint server using the SharePoint Setup User Administrator account (eg, spAdmin).
- Launch Central Administration.
- Navigate to: CA > Application Management > Manage service applications, and then click on the name of your User Profile Service Application (this may be the name).
- Then navigate to Synchronization > Configure Synchronization Connections.
- Open the dropdown menu for the appropriate connection listed, and then select Edit.
- In the Connection Settings section, enter the new password into the Password and Confirm Password fields.
- Test the new password by clicking the Populate Containers button.
- Click OK.
- Navigate back to the Manage Profile Service: User Profile Service Application page.
- Click the Start Profile Synchronization button.
- Select Start Full Synchronization, and then click OK.
- Summary
- The key things to keep in mind here are that: 1) spProfile is not managed and 2) after changing the password in the AD, you will need to return to the user profile service application and update the password used in the synchronization connection. Once you do that, you're done.
- Description
References
- General
- Initial deployment administrative and service accounts in SharePoint 2013
- Account permissions and security settings in SharePoint 2013
- Updating passwords on SharePoint 2010
- SharePoint 2013 Service Accounts Best Practices! Is there a golden solution for all farms?
- Changing SharePoint farm passwords
- Managing Passwords for Service Accounts in SharePoint & SQL Server: excellent, thorough discussion. NOTE: his discussion presumes that the server farm account has been granted the necessary AD write privileges for writing password changes entered into SharePoint Managed Accounts back to AD.
- SharePoint 2013: Service Accounts
- SharePoint 2013: Service Account Configurations and Permissions
- SharePoint Setup User Administrator Account Password Changes
- SharePoint SQL Server Service Account Password Changes
- SuperUser Accounts
- Configure object cache user accounts in SharePoint Server 2013
- SharePoint–Setting the Super User and Super Reader Accounts for All WebApplications in the Farm
- Part 5: Object caching
- How does SharePoint 2010 uses the SuperReader/SuperUser accounts?: excellent discussion that finally helped me to understand why a password is never requested when entering these accounts into SharePoint.
- Service Application Service Account
- User Profile Synchronization Account
- Commandlets
- Miscellaneous
Notes
Synchronization Service Manager: useful tool for troubleshooting the SharePoint User Profile Service Application. You'll find it at this folder location:
\Program Files\Microsoft Office Servers\15.0\Synchronization Service\UIShell
Look for miisclient.exe. It enables you to view the real-time status of UPA processes, among many other things. I don't use it to manage FIM; just to view status information. For example, I have used to troubleshoot a UPA that failed to start. As I tried different troubleshooting steps, I monitored Synchronization Service Manager, watching in real-time to see how far UPA started, before stopping. It also provides helpful other information, such as confirmation of the Domain Controller that it is connecting to. If you configured UPA using Auto Detect for DC, you can now determine exactly which DC it is connecting to. You can also get confirmation of the service account that is running UPA (eg, the farm service account). This tool is also useful for monitoring startup functionality, after changing the password under which the Synchronization service runs (which is usually the farm server account, eg, spFarm).
The User Profile Synchronization Service (this one is listed just below the User Profile Service) will likely be stopped if it is configured to run under the server farm account, which is usually the case. You will need to manually start it again and you will likely be prompted to enter the new server farm account password. Once you do this, it will be in the Starting... state for awhile. Keep refreshing the page for a while to verify that it finally reaches the Started state.
If you first launch a browser as you would normally, and then connect to Central Administration, you may not see the Manage services on server link in the System Settings group. This is because the browser instance must specifically be running in elevated mode, meaning Run as administrator. This is the case when you launch CA using the menu option in the Windows Server Start menu. If you click on this, you are presented with the usual User Account Control prompt. This is an indication that the application is being run in elevated mode. This icon really just launches IE, and points it to CA, but it does so as an elevated instance of IE. If you launch a browser normally, and then try connecting to CA, if your current account is a member of the Farm Administrators group in CA, your browser will connect to CA and you will see most of the usual web pages and links in CA. Except for Manage services on server.