How can I change the user identity that runs a build agent in TeamCity?

Solution 1:

  1. Open the services list (Start -> Run -> services.msc)
  2. Find the "Team City Build Agent" service
  3. Open the properties dialog for the service (right click, Properties)
  4. Choose the "Log On" tab
  5. Change the identity of the user running the service by choosing "this account" and enter the password.