SharePoint Stuff



Change MOSS and WSS Passwords

Written by admin. Posted in Microsoft


 @echo off
rem for more info please see http://support.microsoft.com/kb/934838

rem central admin
echo *** Updating Central Admin password
"%commonprogramfiles%Microsoft SharedWeb server extensions12BINStsadm.exe" -o updatefarmcredentials -userlogin %1 -password %2

rem other app pools
echo *** Updating app pool passwords
"%commonprogramfiles%Microsoft SharedWeb server extensions12BINStsadm.exe" -o updateaccountpassword -userlogin %1 -password %2 -noadmin

rem ssp - new
echo *** Updating ssp password for new installs
"%commonprogramfiles%Microsoft SharedWeb server extensions12BINStsadm.exe" -o editssp -title "SharedServices1" -ssplogin %1 -ssppassword %2

rem ssp - upgrade
echo *** Updating ssp password for upgraded installs
"%commonprogramfiles%Microsoft SharedWeb server extensions12BINStsadm.exe" -o editssp -title "Default Web Site" -ssplogin %1 -ssppassword %2

rem osearch
echo *** Updating osearch password
"%commonprogramfiles%Microsoft SharedWeb server extensions12BINStsadm.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 SharedWeb server extensions12BINStsadm.exe" -o spsearch -farmserviceaccount %1 -farmservicepassword %2
echo *** Updating spsearch content access account
"%commonprogramfiles%Microsoft Sharedweb server extensions12BINstsadm.exe" -o spsearch -farmcontentaccessaccount %1 -farmcontentaccesspassword %2

rem restarting IIS
echo *** Doing soft restart of IIS
iisreset /noforce
echo on

Tags: , , , ,

Trackback from your site.

Leave a comment