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
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
Thanks in advance,
EDIT: This seems to happen when you try and change the AppPoolId value as well.
You must be logged in to reply to this topic.
Create a free account today to participate in forum conversations, comment on posts and more.