is it possible to run a command as another user

  • Thread starter Bruno van Dooren
  • Start date
B

Bruno van Dooren

Hi,

i have an application where i want to execute a shell command as another
user.
we can call a native command to execute a batch file, but we want to use the
..NET framework for that.

i searched in the MSDN, but i could not find the answer.
does anyone know if this is possible.

kind regards,
Bruno.
 
J

Jason

check out "WindowsIdentity.Impersonate"
I have never used it before, but i have read into it...might be what you are
looking for

Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top