how to programatically retrieve application pool identity in IIS 6
From: gzinger (gzinger_at_community.nospam)
Date: 08/17/04
- Next message: RayO: "Re: IIS/ASP/SQL Security Error"
- Previous message: WenJun Zhang[msft]: "Re: Download From IIS 6"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: RayO: "Re: IIS/ASP/SQL Security Error"
- Previous message: WenJun Zhang[msft]: "Re: Download From IIS 6"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|