We are using Jenkins on Windows-8 x64 for building [MSBuild], Packaging [cspack], Running [csrun], and Testing (nunit) a project of azure cloud services. The emulators of Azure cloud service have to run as an administrator, also, we need to bind to the ports 80/443. So, we cannot use the 'lite' emulators.
We did it using a .bat file that the Jenkins runs. Usually, no user will log into the machine, the machine will boot up and the Jenkins run as a service which will monito our git repository and shall email on encountering failures. The admin will log into the machine manually just for the maintenance part like applying patches or rebooting the machine.
How can we configure the Jenkins for running the .bat file as an admin without involving any human interaction?
The steps I want to achieve : Using a desktop User Interface, we have to run the cmd prompt as administrator, should acknowledge UAC prompt, get elevated-privilege-prompt, and then run the .bat file.
Can this be done?