I have a Windows build agent and need to change the account that the agent runs under for various reasons.
Changing the account and running the agent is fine. However, certain steps that make use of commands (acutally executables in c:\windows\system32) fail as the path to command can't be found.
I have tried setting the path explicitly in the user's own environment variables as well as in the buildagent.properties to no avail.
An example of the errors I am getting is:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3717, 9): error MSB3073: The command "xcopy C:\TeamCity\buildAgent\work\a3c8e0f76491c232yadayada.dll C:\TeamCity\buildAgent\work\a3c8e0f76491c232\yadayadadir\ /I /Y
xcopy C:\TeamCity\buildAgent\work\a3c8e0f76491c232\yadayada.dll C:\TeamCity\buildAgent\work\a3c8e0f76491c232\AppEngine\yadayadadir\ /I /Y" exited with code 9009.
Also, Powershell scripts that are running in other build configurations are failling where I make reference to net.exe and whoami.exe (and indeed anything else that is typically in the system path)
Is there a known issue with respect to running agents in different user accounts or is there something that I have fundamentally missed?
Thanks in advance.