Re: vbscript and IIS

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 09/08/04


Date: Wed, 08 Sep 2004 18:36:18 +0200

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


Relevant Pages

  • vbscript and IIS
    ... I've got the following task to do: I need to check various settings of a ... website files on IIS. ... browsed to my website and than I manually checked file by file, ...
    (microsoft.public.scripting.vbscript)
  • Re: HTTP Error 403.6 - Forbidden: IP Address Rejected
    ... it was the proxy settings on the ... > You can also try to change the security settings for the Remote Web ... Open the IIS console ...
    (microsoft.public.windows.server.sbs)
  • Re: scripting a periodic iis redirect
    ... Below is the specific "Redirect to" ... I am a relative newbie to scripting but am motivated by the few ... >>> survey for the only site hosted on a particular server running IIS ...
    (microsoft.public.inetserver.iis)
  • [NT] IIS Allows Universal Cross Site Scripting
    ... IIS is susceptible to such a CSS error. ... Stealing cookies from any IIS site, cross-domain scripting to any IIS ... through ActiveX components, hijacking the MSN Messenger client, etc. ... displayResult is derived from the first instance of:// in the URL until ...
    (Securiteam)
  • Re: some links wont open in IE, but will in Firefox
    ... You have to have scripting enabled for these to work. ... Double click on the Globe icon in the status bar to display the Security ... Settings for the Internet Zone. ... if there are any shared files that Norton was sharing with IE) ...
    (microsoft.public.windows.inetexplorer.ie6.browser)