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