Always "Run As" Administrator for .exe

I have looked all over the internet for days and non of the solution have worked for me. I need to run a .exe file as an Administrator. Here is my setup:

I have server 2003 with active directory. The domain is JNR. I have an Administrator account and a regular user named jmain.

I want jmain to launch an .exe located in c:\Program Files\JNR\JNR.exe as if he was the Administrator. I only want this to occur with this particular .exe file. I know that I can click "Run As" everytime, but I don't want jamin to know the Administrator password. I just want him to simply click on the shortcut for JNR.exe and it launches in Administrator mode. The computer is Windows XP Professional.

If a script is needed, please write out the whole script for me :) Detailed step-by-step instructions would be greatly appreciated!

Thank you,
Adam :)
SpinnerAdamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ComputerTechieCommented:
0
samieranaCommented:
Try to use this program to create your EXE file with administrator password(definitely encrypted)
http://www.autoitscript.com/autoit3/downloads.shtml
 
0
SpinnerAdamAuthor Commented:
I saw this and dowmloaded it but I have no idea how to use it. When I clicked on the file from the site it just launched cmd and quickly disappeared. Cam you write out instructions (using the information I gave to you above) on how I can use this?

Thanks,
Adam
0
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

samieranaCommented:
You have to use both programs:
1. Copy "CPAU.EXE" to your C:\windows\system32 folder.
2. Install Autoit and Open "SciTE Script Editor" from start menu.
3. In this Editor Just use following line:
Run("cpau.exe -u domain\username -p userpassword -ex notepad.exe -lwp")
4. Save this Script with some name (say myProg.au3)
REMEMBER: you have to comment all other line with ";"
5. If you will double click myProg.au3 it will open your NOTEPAD.EXE program. Open Windows Task Manager you will see that this program is running with new context (User will be the same as you mentioned above in command)
6. Now you have one Script which has your password open.... NOT GOOD... go to Start Menu and from Autoit Menu open "Compile Script to .exe"
7. Browse your myProg.au3 file in first box.
8. Browse path for your exe file (enter exe file name here assume myexeProg.exe)
9. Just say convert.
10. Double click myexeProg.exe file and it will open your NOTEPAD.EXE program. Check Task Manager for your which is different from logged in user and same user as in above command.
11. Copy this exe to your "User's Computer". No need to install any of above both programs.
Enjoy
(I have tested this on one of My XP Computer.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ComputerTechieCommented:
Kewl, this was easier than what I was going to say next.

CT
0
samieranaCommented:
ComputerTechie:
Please tell us the other way too.
0
ComputerTechieCommented:
my thought was using powershell after reading this link.

http://huddledmasses.org/a-guide-to-advanced-functions/

CT
0
SpinnerAdamAuthor Commented:
Very good, thank you! I also have another question here, if you want to take a look and get some points :)

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_24528008.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.