Run exe as admin?

Status
Not open for further replies.

scj6771

Baseband Member
Messages
77
I have a standard user running Win XP on a Windows 2000 Server domain, this user has no local admin rights, this user needs to run an exe several times a day which will allow him to access our Xata servers (monitors our trucks and drivers), if I give him local admin rights I would not need your help. Is there a way to run this exe as an admin under the hood, I do not want to use the "run as" option and I do not wish to give him admin rights to the servers either.
 
you are in luck. I just did this for our whole enterprise. There are several tools out there that allow you to pipe the password into the RUNAS command, but then there are also tools that emulate runas so it's a bit more secure. No password visable in code or on screen. The one I'm using is called CPAU and can be found at www.joeware.net
I wrote up a perl program that does all the gui stuff for the user.
Once you get the program (CPAU) you do the following.

figure out the command you need to pass from the command line, i.e. runas /user:domain\user "c:\program files\internet explorer\iexplore.exe"
given the above, you would type out the following for CPAU;
cpau.exe -u domanin\user -p password -ex "c:\program files\internet explorer\iexplore.exe" -enc -file C:\IE.job
This will create a file called ie.job on c: that you can then use to run Internet explorer as the user given with the password given from the following command.
cpau -dec -file ie.job.
if that doesn't make sence let me know...
the *.job file is encoded so unless the user really wants to find the password, they won't be able to without some serous work.

Good luck
 
Status
Not open for further replies.
Back
Top Bottom