Run the command or application in the Security context of specified user

By Peter Bromberg

Use below code when you want to run "command or application" with "Arguments" as a particular user. Suppose you want to run command say compmgmt.msc or any command or application as a user domain\username then change the password and username in below program. Currently this program runs a specified application in the security context of the current logged on user. This program will also display output/error of the program. You can convert this program so that it can take all argum

Popularity  (637 Views)
Picture
Biography - Peter Bromberg
Peter Bromberg is a C# MVP, MCP, and .NET expert who has worked in banking, financial and telephony for over 20 years. Pete focuses exclusively on the .NET Platform, and currently develops SOA and other .NET applications for a Fortune 500 clientele. Peter enjoys producing digital photo collage with Maya,playing jazz flute, the beach, and fine wines. You can view Peter's UnBlog and IttyUrl sites. Follow Microsoft MVP
Create New Account