Computer Hope
Microsoft => Microsoft DOS => Topic started by: TheHoFL on May 14, 2009, 02:56:32 PM
-
Hello,
I have been attempting to run an application with administrative privileges for some time now. I have made a few BATs ans have been unsuccessful. I am looking for some assistance please.
Here are some details:
The local account or domain account only has "user" lever privileges. What i want to do is create a BAT file that will execute the application and run in with admin rights while logged in with the "user" account.
Can some one help please?
Thank you!
-
check runas /? in cmd
-
I did. If you do it that way, you would be prompted for the admin password. The problem is i can not give the users the local admin password. The local users are students at our college. They mess with too much stuff as it is already. ;)
I guess i really am looking for a way to create a BAT that i could convert to EXE to run a file. It would need to include the admin password and would probably have to be put in the safe folder as the EXE that needs to be run.
-
so i only found this:
http://www.robotronic.de/runasspcEn.html
should work ;)
-
I'm not sure about this at all, but I believe the batch file must be run as administrator too.
-
Devcom,
The link you provided worked like a charm. It took a few tries to get it going, but that was user error. :-[
Anyway, thank you to all who posted!
-HoFL