IIS 6 VBscript MetaBase editing

Home Forums Scripting General Scripting IIS 6 VBscript MetaBase editing

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Niv
    Member
    #113073

    Hello everonye,

    I’ve ran into a problem when I tried changing the DefaultDoc property
    of a site using a script.
    The script basicaly doesn’t work when one of the site’s sub-directories
    or virtual directories has “Enable default content page” checked.
    If you check the value of DefaultDoc in the MetaBase on that site you will see that it has changed, but when you look at the site’s properties in the IIS
    Manager the Default pages aren’t changed.
    If you try and change the Default content page using the IIS Manager
    you are pormpted to replace those of the subdirectories and virtual
    directories, I believe this is why the changes fail to apply to the
    site.
    Does anyone know a work around for this issue?

    Oh, the script looks like this:

    NormalDoc = “Default.htm,Default.asp,index.htm,Default.aspx”
    Set Website = getObject(“IIS://localhost/W3SVC/2”)
    Website.DefaultDoc = NormalDoc
    Website.SetInfo

    Thanks in advance,

    Niv.

    EDIT: This seems to happen when you try and change the AppPoolId value as well.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.