Set-SPPassPhrase: Error deploying administration application pool credentials. Another deployment may be active.
Problem: Got this error message when trying to change pass-phrase in a SharePoint 2013 farm:
Set-SPPassPhrase: Error deploying administration application pool credentials. Another deployment may be active. an object of the type Microsoft.SharePoint.Administration.SPMasterPassphraseDeploymentJobDefinition named “Job-admin-passphrase-change” already exists under the parent Microsoft.SharePoint.Administration.SPTimerJobService named “SPTimerV4”. Rename your object or delete the existing object.
Solution:
Clear SharePoint Configuration Cache on all SharePoint Servers! Make sure the SharePoint timer job is successfully started after clearing the SharePoint configuration cache.
- How to clear configuration cache in SharePoint?
- How to Clear SharePoint Configuration Cache using PowerShell?
KB: https://support.microsoft.com/en-us/kb/939308.
If you still experience the trouble, delete the timer job and try again with your passphrase change:
#Get the passphrase change timer job
$job = Get-sptimerjob job-admin-passphrase-change
#Output to screen
$job
#Delete the timer job
$job.Delete()
You may face this issue when you try to use: Set-SPManagedAccount cmdlet as well.