Run exe as admin? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
Thread Tools Display Modes
Old 03-09-2005, 03:27 PM   #1 (permalink)
Junior Techie
Join Date: Dec 2004
Posts: 77
Default Run exe as admin?

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.

scj6771 is offline  
Old 03-09-2005, 03:47 PM   #2 (permalink)
Master Techie
Join Date: Oct 2003
Posts: 2,258

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
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

Inaris is offline  
Old 03-10-2005, 03:23 AM   #3 (permalink)
Master Techie
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher

Inaris really good info there! I may have to abuse your talents at my enterprise!
Win2kpatcher is offline  
Old 03-10-2005, 02:12 PM   #4 (permalink)
Master Techie
Join Date: Oct 2003
Posts: 2,258

I'm always looking for more work... Give me an offer, and we can talk...
Inaris is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.