使用版本SharePoint2010:
$username="domain\username"$newpassword="xxxxxxxx"stsadm -o updatefarmcredentials -userlogin $username -password $newpassword