Posts

Showing posts from December, 2020

PowerShell Script for Updating the Password for SharePoint On Premise Service Accounts

 Here's a useful script for updating SharePoint Service Account passwords.   SharePoint actually has a useful ManagedAccounts system where it will automatically change the password for the account.  However, on one of my SharePoint farms, it doesn't quite work right.   For some reason, after the automatic password change, some of the services or app pools never receive the new password. So, I have had to change the password manually and make sure the services and app pools have the correct password. The following script will change the service account password, and then update the app pools and services on the server it is running on.   The service accounts are  specified in the $serviceAccounts variable.  You will need to edit the script and set those accounts to the ones on your farm.   You will need the  ActiveDirectory Module | Microsoft Docs  ,the WebAdministration module, and the Microsoft.SharePoint.Powershell snap in. NOTE: This script was written for a single WFE Share