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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running application as another user

Status
Not open for further replies.

WILLIEWANKA

Technical User
May 22, 2003
42
US
Hey everyone, I am using a software package that cannot run under a limited account and must be run as an administrator. Currently I have all of my users set as administrators to allow them access. I want to put them back on limited accounts, but still allow them to run the required software as the administrator (there is no way around it)

Instead of having them right click and run as administrator, i'd like to keep the password hidden and run the application programattically through a GUI.

I was wondering if anyone has any sample code they can share that shows how you can start an application as another user and supply the name and password programatically.
 
since when?

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Nope, but I wouldn't call it straightforward.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
I needed to use impersonation a while ago. A quick search on Google led me to a sample, 10 minutes minor editing and it worked perfectly.

[vampire][bat]
 
Then again you are a smart person.

But it's full of danger.

Wonder why you didn't search this site? I have posted a solution already.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
But I'm not a genius. [smile]

I agree, but sometimes it is needed.

I needed impersonation long before I had come across Tek-Tips.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top