Run a program as a different user - TechRepublic
General discussion
November 18, 2001 at 08:00 AM
agibbs

Run a program as a different user

by agibbs . Updated 24 years, 7 months ago

I have a VB program that does some things like adding & managing users, editing file/directory permissions, etc. My problem is that in order for the user to run the command to create a user, they need to have Admin rights (or at least create user rights) on the server they run it on. I don’t want that. I’ve seen ASP components before that allow you to specify a username/password that the program runs as, so, say, a normal user could run the program but the command would execute as though they were logged on as Administrator.

Does anyone know how to do this in Visual Basic?

–Aaron

This discussion is locked

All Comments