Computer Hope

Microsoft => Microsoft DOS => Topic started by: TheHoFL on May 14, 2009, 02:56:32 PM

Title: Run ".exe" as admin...assistance needed.
Post 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!
Title: Re: Run ".exe" as admin...assistance needed.
Post by: devcom on May 14, 2009, 03:20:08 PM
check runas /? in cmd
Title: Re: Run ".exe" as admin...assistance needed.
Post by: TheHoFL on May 14, 2009, 03:29:35 PM
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.
Title: Re: Run ".exe" as admin...assistance needed.
Post by: devcom on May 15, 2009, 04:15:44 AM
so i only found this:
Code: [Select]
http://www.robotronic.de/runasspcEn.html
should work ;)
Title: Re: Run ".exe" as admin...assistance needed.
Post by: Carbon Dudeoxide on May 15, 2009, 04:21:23 AM
I'm not sure about this at all, but I believe the batch file must be run as administrator too.
Title: Re: Run ".exe" as admin...assistance needed.
Post by: TheHoFL on May 20, 2009, 12:45:51 PM
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