Running a thread with a different credential

  • Thread starter Thread starter Hayato Iriumi
  • Start date Start date
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
 
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
 
Hello, Mattias.
Thank you very much for your reply. I'll definitely give it a try.
 
Back
Top