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 |
 |
| 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. Pete Tweets at peterbromberg |  |
|
|
|
Didn't Find The Answer You Were Looking For? |
| EggHeadCafe has experts online right now that may know the answer to your question. We pay them a bonus for answering as many questions as they can. So, why not help them and yourself by becoming a member (free) and ask them your question right now? |
| Ask Question In Live Forum |
|
| If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application. |
| Ask Question In Chat Chaos |
|
| Article Discussion: Run the command or application in the Security context of specified user |
| Peter Bromberg posted at Monday, October 13, 2008 8:16 PM |
 | Original Article |
 |
| |
|