PowerShell: SharePoint - Change Managed Account Password

Updated on 2/7/2015
$managedUser = Get-SPManagedAccount -Identity "domain\userName"
$newpass = ConvertTo-SecureString -String  "secretpassword" -AsPlainText -force
Set-SPManagedAccount -Identity $managedUser  -ExistingPassword $newpass  –confirm