The TFS Agent for 2015 or 2017 versions is a Windows Server machine that hosts the Service that allows to run Build and Release definitions for your code as part of the DevOps Process. It can run as a Windows Service and can be found by the name VSO Agent in the Services Snap-in. It uses a domain account to run the Windows Service which can be seen under the LogOn properties of the Service.
It runs VSOAgent.exe behind the scenes which is kept in the Agent folder configured for that TFS Agent e.g.
If at any point you require to change the Windows Service account details that was configured earlier due to may be a password change, the following command may help you.
Please note that Password should not be changed from the Services Snap-in as it may cause the Agent Service to break.
- Open Command Prompt in Administrator mode.
- CD to the directory e.g. as mentioned above C:\TFSAgent\agent\ . Make sure you’re one level above the folder where the VSOAgent.exe is placed else it’ll give error.
- Run the following command: .\Agent\VSOAgent.exe /ChangePassword
- Fill in the new Credentials as Prompted.
- Restart the Service VSO Agent from the Services Snap-in.
The Agent should now be running with the new Service account.