-1

I'm starting an exe application through a .bat file, I want to start it granting admin privileges to it. How can I do it in a .bat file.

Deepak
  • 377
  • 4
  • 14
  • Could you please provide the things you already tried using answers from search engines to your topic? – isaias-b Sep 27 '15 at 08:57
  • 1
    possible duplicate of [How to request Administrator access inside a batch file](http://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file) – isaias-b Sep 27 '15 at 08:58

1 Answers1

0

Two basic options:

  1. Run the script as admin
  2. Use the 'runas' command e.g. runas /user:administrator blah.exe Runas will then prompt for the admin password.
Andrew Coates
  • 1,775
  • 1
  • 10
  • 16