kwizcom banner advertisement

How to Change Managed Account Password in SharePoint 2013?

You may have to change your service account passwords for reasons such as: Password expiration, Security best practice, Your SharePoint guy left your company, etc. Remember those old days? You got to run stsadm -o updatefarmcredentials and update application pool accounts on every server in the farm?

Luckily, we got managed accounts feature starting from SharePoint 2010 on-wards. The primary advantage of the managed accounts idea is: To centrally manage service accounts of SharePoint in one place, by registering and mapping them with  SharePoint Services such as: Farm, Service Applications, Application Pools, etc. So, whenever you need to change the service account's password, Update them once from SharePoint Central Administration site (or PowerShell!).

How to change password of a managed account in SharePoint 2013
There are three different cases to change managed account passwords in SharePoint 2013 either from SharePoint Central Administration or using PowerShell.
  1. Generate new password
  2. Set  managed account password to new value
  3. Use existing password - This option lets us updating the account password in SharePoint, if it is already changed in Active Directory (or somewhere!)
Change Managed Account Password in SharePoint 2013
Case 1: Change password of the Managed account to a new random password:
If you want the password to be changed to an automatically generated random password, Use the "Generate new password" option.

To reset managed account password SharePoint 2013 with PowerShell:
Set-SPManagedAccount –Identity domain\user -AutoGeneratePassword $true

Case 2: Change Password of the Managed account in SharePoint as well as in AD
If you want to change the service password to a specific value, select the option "Set account password to new value" and enter the new password.

You can change managed account passwords in SharePoint 2013/2016 using PowerShell as:
$ManagedAccount = Read-Host "Enter the Managed account in Domain\User Format:"

#$ManagedAccount = Get-SPManagedAccount -Identity "Crescent\SPContent"
#Get new Password for the managed account
$Password = Read-Host "Enter new password for managed account" –AsSecureString

#Change the password for the managed account
Set-SPManagedAccount -Identity $ManagedAccount -NewPassword $Password
When you try to change managed account password in SharePoint 2013, You may get the error:
"Set-SPManagedAccount: The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements"
Apparently, the given password is not satisfying your AD domain's password policy. Just check with your AD admin to get the password policy insights.

Case 3: Update the password of the Managed Account, which was already updated in AD:
If you / AD admin has already changed the service password in active directory, you have to update it in SharePoint. Select "Use existing password" option and then enter the password

To update managed account passwords in SharePoint  2013 using PowerShell:
$ManagedAccount = Read-Host "Enter the Managed account in Domain\User Format:"

#Get new Password for the managed account
$Password = Read-Host "Enter new password for managed account" –AsSecureString

#Change the password for the managed account
Set-SPManagedAccount -Identity $ManagedAccount -ExistingPassword $Password -UseExistingPassword $true
If you get access denied error on changing password of managed account in SharePoint 2013 or in SharePoint 2013, one possible reason could be: "User cannot change password" settings.
change managed account password sharepoint
Please note, managed accounts in SharePoint and Managed service accounts in Active Directory are two different things. We can't use Active Directory managed service accounts in SharePoint! Managed accounts must be controlled by SharePoint and can be configured to auto-change passwords according to the organization's password policies
How to Change Managed Account Password in SharePoint 2013? How to Change Managed Account Password in SharePoint 2013? Reviewed by Salaudeen Rajack on August 20, 2014 Rating: 5

1 comment:

  1. have changed service account password which is used for SP Search Host controller and SP server search. I am trying to update the same password in central admin, but getting an error "The specified domain either does not exist or could not be contacted".

    I tried same using PowerShell script, but there also same error.

    ReplyDelete

Please Login and comment to get your questions answered!

Powered by Blogger.