Hi,
I've got the following task to do: I need to check various settings of a
website files on IIS. This mainly involves type of access (anonymous, basic
authentication etc.) Up to now I've done it manually, I opened inetmgr,
browsed to my website and than I manually checked file by file, security
settings.
Now, since the task is rather tedious, I thought about a script which
would do this for me, but I'm not really sure how. I am dimly aware of
things like ADSI, but I don't have any experience with it.
Could anyone provide any example, how for instance I can check if the
anonymous access has been set for given aspx file?!

Thanks,
Piotrek

Re: vbscript and IIS by jeff

jeff
Wed Sep 08 11:03:52 CDT 2004

On Wed, 8 Sep 2004 16:41:47 +0200, "Piotrek Stachowicz"
<dynamite@poczta.onet.pl> wrote:

> I've got the following task to do: I need to check various settings of a
>website files on IIS. This mainly involves type of access (anonymous, basic
>authentication etc.) Up to now I've done it manually, I opened inetmgr,
>browsed to my website and than I manually checked file by file, security
>settings.
> Now, since the task is rather tedious, I thought about a script which
>would do this for me, but I'm not really sure how. I am dimly aware of
>things like ADSI, but I don't have any experience with it.
> Could anyone provide any example, how for instance I can check if the
>anonymous access has been set for given aspx file?!

Look for cacls.vbs in the sample scripts, it may do what you're
looking for.

Jeff

Re: vbscript and IIS by Torgeir

Torgeir
Wed Sep 08 11:36:18 CDT 2004

Piotrek Stachowicz wrote:

> Hi,
> I've got the following task to do: I need to check various settings of a
> website files on IIS. This mainly involves type of access (anonymous, basic
> authentication etc.) Up to now I've done it manually, I opened inetmgr,
> browsed to my website and than I manually checked file by file, security
> settings.
> Now, since the task is rather tedious, I thought about a script which
> would do this for me, but I'm not really sure how. I am dimly aware of
> things like ADSI, but I don't have any experience with it.
> Could anyone provide any example, how for instance I can check if the
> anonymous access has been set for given aspx file?!
Hi

I have no experience with IIS at all, but playing around with Google
newsgroup search, this is what I came up with:

Parsing the AuthFlags property looks like the way to do it:
http://groups.google.com/groups?threadm=emZzVGOw%24GA.197%40cppssbbsa02.microsoft.com

More IIS Management Scripts e.g. here:
http://www.iisfaq.com/Default.aspx?tabid=2538


You can use http://groups.google.com/advanced_group_search to search
in a news database having articles dated back to all the way to 1981.



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx