Previous Next

Thread: Configuring content expiration with adsutil.vbs

Last post 06-18-2008 10:30 AM by Hitchhiker181. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-18-2008, 2:22 AM

    Configuring content expiration with adsutil.vbs

     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.


     

  • 06-18-2008, 6:03 AM In reply to

    • Rovastar
    • Top 10 Contributor
    • Joined on 03-13-2008, 10:00 AM
    • London, UK
    • Posts 594

    Re: Configuring content expiration with adsutil.vbs

    What error do you get when trying to create the property?

    Most overused word in IT is 'should' as in 'That should work!?!'
  • 06-18-2008, 10:30 AM In reply to

    Re: Configuring content expiration with adsutil.vbs

     When I'm running this -

    Cscript.exe adsutil.vbs CREATE W3SVC/1/Root/MyVDir/Images/HttpExpires

    It actually doesn't cause any error, but it doesn't seem to solve anything. I get the same error again when trying to set it.

Page 1 of 1 (3 items)
Page view counter