Load application as admin from Service

My application has  a service running in local system user.
I want it to load my application as another user eg: administrator
How do I do it.
Will the user have to provide the 'administrator' password to my software ?
I use Delphi XE2 on all windows OS.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

You mean, you would like to change the account that the service runs with? If i may ask, why would you want to change it?
Allan_FernandesAuthor Commented:
Not so. I have a backup application. On servers the users do not login and my backup does not take place. My application cannot run as a service so I have just suppressed the stalling UI messages. I would like that the same run in a admin user rather than in Local system as there is no UI. I have created  a simple Service appliaction just so that I can load my main application.
Ok, so you need to interact with it, it cannot run unattended/scripted?
I know all kinds of possible setups, but this is still unclear to me.
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Allan_FernandesAuthor Commented:
I use Sockets for interaction between service and application so that is no issue.
I just want to load the Application (like with createprocess)  wherein I can load the Application
as say administrator/backup user etc.
I will be asking the user to enter the password into my software.
or is there a better option ?
I see, you would like to let the user start it with different credentials, right?
Then you would need to use psexec. psexec.exe knows the "i-switch" (ii) for interactive mode.
For example
psexec -u administrator -p Pa$$word notepad
would run notepad as administrator AND visible, something which you could not achieve another way.

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
Funny, my solution had typos.
Psexec -p pass -u admin -I notepad
But I guess you got that right already.
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
Microsoft Legacy OS

From novice to tech pro — start learning today.