I’d like to give the ASPNET user Full Control over several files, but it looks like I’ll need to get the account’s token first. Does anyone know how to impersonate the ASPNET account within a desktop app?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is an example of impersonating another use with WindowsIdentity.Impersonate and another example. You will have to have a known process identity for ASP.NET to run under.