Share via


Updatefarmcredentials:Stsadm 作業 (Windows SharePoint Services)

作業名稱:Updatefarmcredentials

描述

更新 SharePoint 管理中心網站的 Web 應用程式集區以及 Windows SharePoint Services 計時器服務 (SPTimer)。

注意

updatefarmcredentials 作業必須在架設管理中心的伺服器上執行。若要變更任何其他 Web 應用程式集區帳戶 (管理中心使用的帳戶除外),請使用 Updateaccountpassword 作業。

語法

stsadm -o updatefarmcredentials

[-identitytype] <configurableid/NetworkService>

[-userlogin] <網域\使用者名稱>

[-password] <密碼>

[-local]

[-keyonly]

參數

參數 必要? 描述

identitytype

服務帳戶值的格式為:

"NetworkService"

configurableid 值的格式為:

*網域\使用者名稱*

提供方法將伺服器陣列帳戶從網域帳戶變更為服務帳戶 (例如 NetworkService)。

同時說明用為內建服務帳戶 (例如 NetworkService) 或可設定識別碼 (例如*網域\使用者名稱*) 的應用程式集區帳戶。

預設值設為 configurableid。

userlogin

有效的使用者名稱,例如*網域\使用者名稱*

登入帳戶所使用的使用者名稱。只有使用 configurableid 時才需要此參數。

password

userlogin 參數相關的密碼。只有使用 configurableid 時才需要此參數。

local

<無>

執行下列功能:

  • 更新本機伺服器。

  • 不啟動計時器工作。

  • 不更新資料庫。

local 參數是用在本機伺服器因任何原因而無法更新的情況。

此外,local 參數會修正僅限本機電腦的修正程式、更新管理應用程式集區與連結的服務 (例如 SPTimer),以及認證主要登錄機碼。

keyonly

<無>

在本機伺服器上設定認證主要登錄機碼,但不提供新帳戶 (亦即變更實際的應用程式集區帳戶)。

另請參閱

概念

變更管理中心和計時器服務的密碼 (Windows SharePoint Services)

其他資源

如何變更 SharePoint Server 2007 和 Windows SharePoint Services 3.0 的服務帳戶和服務帳戶密碼 (英文)