Frage

I have about 10 service accounts for SharePoint 2013. Is there a good PowerShell script that I can use to change the password for all of these accounts? I have seen this http://www.mstechbits.com/sharepoint-2013/how-to-change-service-account-password-in-sharepoint-2013/ but this is manual and there is no way to do this efficiently for 20 SharePoint servers (prod, test, dev and QC).

War es hilfreich?

Lösung

You can try the below mentioned script on each farm.

$mc = Get-SPManagedAccount
foreach($acc in $mc)
{
 Set-SPManagedAccount -Identity $acc  -ExistingPassword (ConvertTo-SecureString “pass@word2” -AsPlainText -force) –confirm
}

But drawback is all accounts will have the same password.check this technet for more options: https://technet.microsoft.com/en-us/library/ff607617.aspx?f=255&MSPPError=-2147217396

Another way is to schedule automatic password change at central admin.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top