<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Configuration &amp; Scripting</title><link>http://forums.iis.net/1034.aspx</link><description>Use this forum to get assistance with understanding, editing, or using the IIS metabase including automating with ADSI or WMI</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Script Content Expiration Settings in IIS6</title><link>http://forums.iis.net/thread/1855666.aspx</link><pubDate>Tue, 28 Aug 2007 23:10:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855666</guid><dc:creator>ksingla</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1855666.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1855666</wfw:commentRss><description>&lt;p&gt;Here is a sample printing properties for a vdir. You can filter on vdir name and then set the value.&lt;/p&gt;
&lt;p&gt;Set objWMIService = GetObject(&amp;quot;winmgmts://./root/microsoftiisv2&amp;quot;)&lt;br /&gt;Set nodes = objWMIService.InstancesOf(&amp;quot;IISWebVirtualDirSetting&amp;quot;)&lt;/p&gt;
&lt;p&gt;for each item in nodes&lt;br /&gt;&amp;nbsp; WScript.Echo item.Properties_(&amp;quot;Name&amp;quot;).Value&lt;br /&gt;&amp;nbsp; WScript.Echo item.Properties_(&amp;quot;HttpExpires&amp;quot;).Value&lt;br /&gt;&amp;nbsp; &amp;#39;item.Properties_(&amp;quot;HttpExpires&amp;quot;).Value = &amp;quot;&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;#39;item.Put_&lt;br /&gt;next&lt;/p&gt;
&lt;p&gt;Kanwal&lt;/p&gt;</description></item><item><title>Script Content Expiration Settings in IIS6</title><link>http://forums.iis.net/thread/1855642.aspx</link><pubDate>Tue, 28 Aug 2007 10:38:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855642</guid><dc:creator>Codematic</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1855642.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1034&amp;PostID=1855642</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;can someone show me an example how to script the content expiration settings for an virtual directory?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you very much&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>