We use Jenkins on Win8 x64 to build (msbuild), package (cspack), run (csrun) and test (nunit) the cloud services project. Azure cloud service emulators must run as administrators, plus we need to bind to ports 80/443 (therefore, they cannot use lite emulators).
We do this through a simple .bat file that runs Jenkins. Typically, no user logs in, they log in, and Jenkin acts as a service that monitors our GIT repositories and error messages. The administrator manually logs on to the system for maintenance only (for example, applying fixes or restarting the computer, etc.)
How to configure Jenkins to run this .bat as an administrator without human interaction?
With the desktop user interface, we can right-click on the command line, run as admin, confirm the UAC prompt, receive the prompt with elevated privileges and run the .bat file.
source share