Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run as

Status
Not open for further replies.

BlueTube

Technical User
Aug 4, 2006
24
GB
I need to be able to run a program (exe) as the administrator while the actual user is logged in. Basically I need to mimic the “Run as” in windows explorer when you right click on a program it allows you to click on Run as to run it as a different user. Anyone knows how to do this?
 
One way would be to shell Runas with the commandline parameters.


Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
And threads thread222-548282, Thread222-601022 and Thread711-649056 show where he got some of the code. More specifically they provide worked code examples and discussion of exactly what the OP is asking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top