Domanda

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).

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top