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.
Asked
Active
Viewed 774 times
-1
-
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
-
1possible 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 Answers
0
Two basic options:
- Run the script as admin
- 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