To run builds, the build agent must be started under a user with sufficient permissions for performing a build and managing the service. By default, a Windows service is started under the SYSTEM account which is not recommended for production use due to extended permissions the account uses. To change it, use the standard Windows Services applet (Control Panel|Administrative Tools|Services) and change the user for the
Locations of the service accounts profiles: "Local Service" - C:\Windows\ServiceProfiles\LocalService "Network Service" - c:\Windows\ServiceProfiles\NetworkService "System"- Has two profiles. One for 32 bit ("C:\Windows\System32\config\systemprofile") and one for 64 bit ("C:\Windows\SysWOW64\config\systemprofile").
If you start an Amazon EC2 cloud agent as a Windows service, check related notes.