Hello,
I've been attempting to use adsutil.vbs to set a certain directory inside a virtual directory, to have content expiration (IIS 6.0).
Running this command -
Cscript.exe adsutil.vbs SET W3SVC/1/Root/MyVDir/Images/HttpExpires "D,0"
Only works if I've previously set this property using inetmgr.exe GUI. Otherwise, I get the error -214746312, "Error trying to set the property".
I'm guessing this is because the property first have to be created at the metabase, but my attempts at writing a CREATE script failed as well.
Can anyone point me at the right direction?
Thanks.