Failed to Update Farm Account Password in Central Admin
Applies to SharePoint 2016; not tested on other versions of SharePoint.
Symptoms
After changing the farm account password in AD, SharePoint fails to update the password with the “Use existing password” option in Central Admin:
Error Message:
Error deploying administration application pool credentials. Another deployment may be active. An object of the type Microsoft.SharePoint.Administration.SPAdminAppPoolCredentialDeploymentJobDefinition named “job-admin-apppool-change” already exists under the parent Microsoft.SharePoint.Administration.SPTimerService named “SPTimerV4”. Rename your object or delete the existing object.
Screenshot:
Findings:
· Correlation ID in ULS shows misleading errors as none of reported services are configured for SharePoint:
o Error updating the account password for process identity Id c3c6d96f-3994-4630-8c03-f019b0f22757, please fix manually. An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named "windows-service-credentials-ProjectCalcService16" already exists under the parent Microsoft.Office.Project.Server.Administration.ProjectCalcService named "ProjectCalcService16". Rename your object or delete the existing object.
o Error updating the account password for process identity Id e14540b3-79a0-4ff6-afd7-0fb03f16274f, please fix manually. An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named "windows-service-credentials-ProjectEventService16" already exists under the parent Microsoft.Office.Project.Server.Administration.ProjectEventService named "ProjectEventService16". Rename your object or delete the existing object.
o Error updating the account password for process identity Id 05aaef65-b8e5-444f-ae95-7ef8b32a9219, please fix manually. An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named "windows-service-credentials-ProjectQueueService16" already exists under the parent Microsoft.Office.Project.Server.Administration.ProjectQueueService named "ProjectQueueService16". Rename your object or delete the existing object.
o Error updating the account password for process identity Id fa8cd0f2-2f2f-4101-9282-3376011cdcee, please fix manually. An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named "windows-service-credentials-SPUserCodeV4" already exists under the parent Microsoft.SharePoint.Administration.SPUserCodeService named "SPUserCodeV4". Rename your object or delete the existing object.
o Error updating the account password for process identity Id c6e2e303-e2fc-4ce9-955b-3d07251178ba, please fix manually. An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named "windows-service-credentials-SPSearchHostController" already exists under the parent Microsoft.Office.Server.Search.Administration.SearchRuntimeService named "SPSearchHostController". Rename your object or delete the existing object.
· IIS shows a mixture of old and new passwords. Script to run to verify:
$sb = {
Import-Module WebAdministration -Force
$webSites = gci -Path IIS:\Sites
$appPools = gci -Path IIS:\AppPools
Get-CimInstance -Namespace root/MicrosoftIISv2 -ClassName IISApplicationPoolSetting -Property Name, WAMUsername, WAMUserPass | Select Name, WAMUserName, WAMUserPass | ft -AutoSize
}
Foreach($server in (Get-SPServer| ? {$_.Role-NE "Invalid"}))
{
Write-Host "Retrieving from Server" $server.Address "---- " -f green
Invoke-Command -ComputerName $server.Address -ScriptBlock $sb
}
Cause
As the error indicates, there’s a stalled job-admin-apppool-change job:
In a normal circumstance, this job does not exist (confirmed in four other farms; it returned nothing).
Resolution
1. Delete the stalled job and confirm:
2. Retry updating the existing password from Central Admin (screenshot under Symptoms above).