close
MS 有發表一篇 KB 說明如何變更 MOSS & WSS 的 Service Account and Password,可以參考 KB934838:How to change service accounts and service account passwords in SharePoint Server 2007 and in Windows SharePoint Services 3.0 裡面有段 Script,覺得滿好用的..以後要變更服務帳號密碼...就可以不用改的要死要活了..還要想說那個服務沒有改到...
請將下面 Script 存檔後,執行參數為 FileName.bat DomainName\UserName NewPassword
@echo off rem other app pools echo *** Updating app pool passwords "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updateaccountpassword -userlogin %1 -password %2 -noadmin rem central admin echo *** Updating Central Admin password "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o updatefarmcredentials -userlogin %1 -password %2 rem ssp - new echo *** Updating ssp password for new installs "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "SharedServices1" -ssplogin %1 -ssppassword %2 rem ssp - upgrade echo *** Updating ssp password for upgraded installs "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o editssp -title "Default Web Site" -ssplogin %1 -ssppassword %2 rem osearch echo *** Updating osearch password "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o osearch -farmserviceaccount %1 -farmservicepassword %2 echo *** MANUAL UPDATE NEEDED. To update the password, visit the SSP Web application page, click Search Settings, and then click Default Content Access Account. rem spsearch echo *** Updating spsearch password "%commonprogramfiles%\Microsoft Shared\Web server extensions\12\BIN\Stsadm.exe" -o spsearch -farmserviceaccount %1 -farmservicepassword %2 echo *** Updating spsearch content access account "%commonprogramfiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o spsearch -farmcontentaccessaccount %1 -farmcontentaccesspassword %2 rem restarting IIS echo *** Doing soft restart of IIS iisreset /noforce echo on
全站熱搜
留言列表