Windows App run-as diffferent user

  • Thread starter Thread starter Dale Leatherman
  • Start date Start date
D

Dale Leatherman

I need a VB.NET windows application to run as a different user than the
user. The application needs file permissions that the user can not have.
Is there an easy way to do this?

Dale Leatherman
 
You can start the application with RunAs command. If you need start in your
code, you can try to use CreateProcessAsUser SDK function, to create a
process to run that app as another user.

Thanks
Lifeng
MS VB team
 
Back
Top