Assuming there is no impersonation token in place when you make the
call, WindowsIdentity.GetCurrent() will give you the process token
wrapped in a WindowsIdentity.
Thank you Scott. I want to know it in my installer program not inside ASP.Net
code. During installation I want to know the ASP.Net process account and add
it to AzMan store as administrator. I could not find it in IIS metabase.
Apart from machine.config is there any easier way to get it?
In IIS5 I can't think of anyway to do this except by inspecting
machine.config.
In IIS6, unfortunately, I can't think of a way to do this without
looking in the metabase, because IIS6 ignores the <processModel>
section in machine.config.
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.