Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to create an install CD to install multiple windows updates and hotfixes in one. The Autorun.inf launching a .bat (or .exe) running each update in turn. Currently if I run this .bat each update brings up a UAC prompt individually which can be annoying.

However if I run the .bat as administrator it can launch and install each update with just one prompt.

Is there a way to force the bat (or .exe) to need admin priviledges no matter who runs it.

share|improve this question

1 Answer 1

For a normal executable you should just change the manifest to tell the OS that this application requires administrative privileges. This isn't possible with batch files, at least not in the normal way. You can use runas but this won't trigger the UAC prompt and therefore is probably not too nice from a UX point of view.

So the best way would probably be to use a helper application correctly configured to require administrative privileges which does the work of the batch file.

share|improve this answer
    
runas will not work if the Admin approval mode is turned off, which is by default on Domain joined machines. –  surfasb Jan 27 '12 at 1:07

Your Answer

 
discard

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.