문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top