My default website in IIS6 isn't anything special: I have a few subdirectories below the root (/css, /images), some files across the site, and that's it. I don't have any virtual directories configured.
I want to programmatically set the content expiration on the [/css] and [/images]. I have some code written below, but the script fails on the GetObject() call. What am I doing wrong?
set oIIsImagesDir = GetObject("IIS://localhost/W3SVC/1/ROOT/css")
if IsObject(oIIsImagesDir) then
'Call WScript.Echo("oIIsImagesDir.HttpExpires = " & oIIsImagesDir.HttpExpires)
'oIIsImagesDir.HttpExpires= "D, 0x15180"