how to programatically retrieve application pool identity in IIS 6

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: gzinger (gzinger_at_community.nospam)
Date: 08/17/04


Date: Mon, 16 Aug 2004 19:49:01 -0700

I tried to ask this question in VS.NET news groups but folks there refered me
to this group.
--------------------------------------------------------------------------------------------
I am creating a setup application for my ASP.NET web site. I need to make
several directories in that web writable for the account running ASP.NET
application during the installation process - change ACLs on those
directories.
The problem for me is to find out which windows account will be running the
web application I am installing. I need to get this information
programmatically from within the installer.
I would also prefer a method that will work for IIS 5 as well, although
there, I have been told, we could parse machine.config file to extract the
identity information. But if there is some universal WMI call (or some other
technology) that will just give me the identity of an IIS web site or virtual
directory that would be great.
If not, please give me some other direction. I really don’t want to give
“Everyone” “Full Control” on those folders.

Thank you.



Relevant Pages

  • how to programatically retrieve application pool
    ... I tried to ask this question in VS.NET news groups but folks there refered me ... I am creating a setup application for my ASP.NET web site. ... application during the installation process - change ACLs on those ... identity information. ...
    (microsoft.public.inetserver.iis)
  • Re: Priceless Word docs open with boxes everywhere
    ... Search the installation disc for this file. ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.pagelayout)
  • Re: Priceless Word docs open with boxes everywhere
    ... The missing file will have been replaced but the registry entry and the ... Word MVP web site http://word.mvps.org ... Search the installation disc for this file. ...
    (microsoft.public.word.pagelayout)
  • Re: PlasmaCam
    ... Their web site is http://www.plasmacam.com/indexfla.php ... installation is almost sure to blow black dust through out the ... plasma cutter control. ...
    (rec.crafts.metalworking)
  • Re: WinFixer 2005
    ... > Lies all lies. ... >> his real regular PCBUTTS1 name becuase he is summarily filtered out ... >> his web site. ... >> various UseNet News Groups. ...
    (microsoft.public.security.virus)