[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 865
  • Last Modified:

Changing the System Account passwords in MOSS 2007 (AP)

We are currently running MOSS 2007 in a Windows Server 2003 environment using two user accounts:

SharepointWeb
SharepointSQL

These accounts are used within the Central Admin console, and for the services, and possibly other places, as far as I know its a pretty standard MOSS 2007 setup.

Every 30 days we have a system account password change evening, and all the system account passwords get changed. Is there a way we can automate the password change? Maybe a script?

Any help?
0
tlcsupport
Asked:
tlcsupport
  • 2
1 Solution
 
sandipkhardeCommented:
I think this will help you
The following script is an example of how you can use the previous               procedure to create a batch file that automates password changes. Use the               following syntax to run the 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


Modify the script to include the correct names of each SSP in the               server farm. If the server farm is configured to use single sign-on, you must               also use the sc config command.

0
 
tlcsupportAuthor Commented:
Ok,

Yeah I read that off of the Microsoft Website as well, but I don't really understand which parts of it need updating and which parts don't. Which is why I'm here, to see if someone can better explain it to me.
0
 
tlcsupportAuthor Commented:
I ended up using the script from this site:

http://stsadm.blogspot.com/2008/10/change-password-script.html

This was a lot simpler to use.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now