Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to run a batch script as an administer? We need this to be done without any user interaction, so there can't be any password prompt or UAC popups - is this possible?

share|improve this question

Assuming batch means some sort of windows then you could use the task scheduler to do this.

share|improve this answer

You can use a Joeware tool - CPAU.exe to accomplish this:

cpau.exe -u machinename\administrator -p secret_password -ex "path_to_a_program.exe" -lwop

This tool makes easy work of running a program in a privileged context on demand.

share|improve this answer

Assuming batch is refering to the UNIX command, you can issue batch commands as root user, too.

share|improve this answer
Given that he's referring to Administrator and UAC - he's not. – Driftpeasant Dec 12 '11 at 16:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.