How to Reset the SharePoint Farm Account Password
Quick Post here. In my test enviro I tested Changing the farm admin password (case 2) but only recovered my SharePoint FE in test, which actually lead to case 1. Here it is:
Source of info: How to Change SharePoint Farm Account Password using PowerShell? – SharePoint Diary
Case 1: Farm Account’s Password is already changed in Active Directory
I don’t know why he mentions using the CA when the CA won’t work when the farm account is used for that service, in that case use Powershell:
#Get the Farm Account $FarmAccount = Read-Host "Enter the Farm Account in Domain\User Format:" #Get the changed Password for the farm account $Password = Read-Host "Enter the changed password for Farm Account" -AsSecureString #Update the password for farm account Set-SPManagedAccount -Identity $FarmAccount -ExistingPassword $Password -UseExistingPassword $true
Case 2: Change password for SharePoint Farm Account
UI Way:
- Go to your SharePoint Central Administration site >> Click on Security >> Configure Managed Accounts
- Click on “Edit” icon next to the SharePoint Farm account.
- Tick “Change password now” check box and enter the new password by setting “Set account password to new value” option
- Enter the new password and click on OK to change the password of SharePoint farm account.
Or PowerShell:
#Get the Farm Account $FarmAccount = Read-Host "Enter the Farm Account in Domain\User Format:" #Get the changed Password for the farm account $Password = Read-Host "Enter the New password for Farm Account" -AsSecureString #Update the password for farm account Set-SPManagedAccount -Identity $FarmAccount -NewPassword $Password -ConfirmPassword $Password