Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Resetting a TeamCity Password

I switched to a new machine yesterday, and had to reinstall my TeamCity notifier ... so off I went to our TC site to download it, and bam, I was asked for my login ... annoyingly TC maintains it's own password and user accoutns, and then matches these up to NT accounts - so my domain login and password wasn't working, and nor was any previous version of it I could think of.

After much digging around ... I finally found out how to reset a TeamCity password. We have to drop to the command prompt, and use java.exe to fire off a password change.

Firstly, turn off the TeamCity services, or the database will be locked

Next, the basic command we need is: java -cp server.jar;hsqldb.jar ChangePassword <username> <newpassword>  <teamcitybuilddir>

Navigate to "<TeamCity home>/webapps/ROOT/WEB-INF/lib"

For this to work we need to point it to an instance of java.exe, and although we can omit the build directory if it is set to default, ours had changed. So our final command is: 

C:\TeamCity\jre\bin\java -cp server.jar;hsqldb.jar ChangePassword ccharlto password   C:\TeamCityBuild\.BuildServer

Voila a reset password ... 30 minutes of my life wasted, hopefully this will save you that 30 minutes if you have the same problem.


Posted 10-07-2008 10:17 AM by Jak Charlton
Filed under:



Resetting TeamCity Password « Software Design and Development Practices wrote Resetting TeamCity Password &laquo; Software Design and Development Practices
on 11-15-2008 9:31 AM

Pingback from  Resetting TeamCity Password  &laquo; Software Design and Development Practices

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)