IIS process account

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any API to get the IIS process account(the default is ASPNET in
ASP.NET)?
 
Hi Reza:

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?

Regards
Reza
 
Oh - that one can be tricky actually.

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.
 

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

Back
Top