Running a thread with a different credential

H

Hayato Iriumi

Hello,
I poked around System.Threading.Thread and
System.Net.NetworkCredential to see if I could run a thread with a
different credential from the credential that the executable is
running under. I know that I can run the entire executable as a
different credential doing RunAs, but I'm wondering that is possible
at thread level.

TIA
 
M

Mattias Sjögren

I poked around System.Threading.Thread and
System.Net.NetworkCredential to see if I could run a thread with a
different credential from the credential that the executable is
running under. I know that I can run the entire executable as a
different credential doing RunAs, but I'm wondering that is possible
at thread level.

You can impersonate a user with WindowsIdentity.Impersonate.



Mattias
 
H

Hayato Iriumi

Hello, Mattias.
Thank you very much for your reply. I'll definitely give it a try.
 

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