Vaibhav Dhasmana
Vaibhav Dhasmana

Reputation: 175

How do I reconfigure Azure DevOps agent on server (windows OS)?

Agent which was configured to run as service earlier needs to be reconfigured to run interactively.

When I am trying to run agent's config.cmd as administrator to reconfigure the agent then a blank window in command prompt opens and gets closed by itself. There is nothing I see more than that.

I want to know the way we can reconfigure the agent.

Upvotes: 5

Views: 9638

Answers (2)

Shakeer Hussain
Shakeer Hussain

Reputation: 2526

Run below command

.\config.cmd remove

Upvotes: 1

Shayki Abramczyk
Shayki Abramczyk

Reputation: 41545

Open a regular cmd as administrator, then cd to the agent folder, then run config.cmd.

But when you will do it you will get a message that the agent already configured and you need to remove it and re-configure. so run config.cmd remove, after it run again config.cmd.

Upvotes: 8

Related Questions