How to Change Password for Service and Reporting Accounts in Team Foundation Server

安裝 Team Foundation Server 基本上需要兩個 accounts: Service Logon Account 和 Reporting Logon Account. 前者用來登入所有的 web services, 後者則用來存取 reporting services 的 data. 然而, 以現今的 IT 管理, 為了考量安全因素, password 會有 expired 的時候, 當我們需要變更這兩個帳戶的密碼時, 我們該如何變更 Team Foundation Server 使用的帳戶密碼? 以下提供一些簡單的方法來更改帳戶密碼:

1. 改變 Service Logon Account 密碼:

更改 Service Account 密碼相當容易, Team Foundation 提供了一個相當好用的工具: TFSAdminUtil.exe. 這個工具位於 Application Tier 裏 [SystemDriver]:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools\

然後在命令提示字元視窗裏, 鍵入以下命令:

TFSAdminUtil.exe ChangePassword <TFS Service Account> <new password>

待命令執行完畢即可.

2. 改變 Reporting Logon Account 密碼:

更改 Reporting Account 的密碼則可以直接利用 SQL Server Reporting Service 所提供的報表管理員來設定. 在安裝Reporting Service的機器上, 打開 IE 在網址列鍵入 https://localhost/reports. 在 "內容" 頁上, 應該可以發現 TfsOlapReportDS 及 TfsReportDS 兩個項目.

View Picture

點選這兩個項目, 在一般屬性頁裏, 更改認證的密碼即可

View Picture

當成功更新 Service Account 及 Reporting Account 的密碼後, Team Foundation Server 應該就可以運作如常了. 至於 TFSAdminUtil.exe 的使用方法及命令, 你可以參考以下的網址:

https://msdn2.microsoft.com/en-us/library/ms253116.aspx