Hi,
I am writing a MS build task which will run (start/stop) some window service in some machine. The MS Build task will be triggered via Team city Build agent.
However teamcity agent is running with some user account which do not have admin access to machine where window services have to be started and stopped, and build fails.
Can anyone tell me if I can impersonate user account (the one which has admin access to machine having window services) in MS Build task and successfully start/stop services?