is there any way to setup the VSTS build agent to run at windows startup in the interactive mode (as an admin)?
Now I'm at the stage where I have installed and configured the agent to run in the interactive mode. So it is running in a console. In the Windows startup there is an entry:
c:\Windows\System32\cmd.exe /D /S /C start "Agent with AutoLogon" "C:\agent\run.cmd" --startuptype autostartup
So without any additional change it is kicked off at Windows startup and it starts in a console. However I need it to run in admin mode so I followed this link:
Basicly this one allowed me to setup another cmd.exe that pointed to the original cmd.exe (renamed) and I was able to mark it to run in admin mode. Unfortunately after this change the agent does not start with windows at all.
Is there any way to debug it or see the logs (applications that failed to start)?
Interestingly enough, when I double click on cmd.exe it always starts in admin mode...so there is some blocker on the machine that prevents it to execute the startup command when windows starts.
I've set up the agent to use an account, which is in the Administrators group on the machine. I thought it will start automatically as an admin using the modified cmd that is set up to always start with elevated privileges - It didn't.
Any help greatly appreciated.
Thanks, Chris