Installing Teamcity build agent as a user: failed to install the service. selected account does not have enough rights

A-Sharabiani picture A-Sharabiani · Jun 8, 2015 · Viewed 7.4k times · Source

I want to install a TeamCity BuildAgend as a user. When entering my user credentials here:

enter image description here

I always get this error:

enter image description here

NOTE: My account (user) is Administrator with full permission!

How can I do this?

Answer

Nanhydrin picture Nanhydrin · Jun 9, 2015

The error message says it does not have "enough rights to run as a service",
this is slightly different from just being an administrator.

  1. Go to Control Panel> Administrative Tools> Local Security Policy.
  2. Select Local Policies> User Rights Assignment.
  3. Scroll down through the list of policies and look for Log on as a service.
  4. Add the account you're using to the list of accounts with this right.

That should in theory be all you need to allow the service to run under that user.