<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: New features in configuration system and appcmd in IIS 7.5</title>
	<atom:link href="http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/</link>
	<description>Windows, IIS, PHP and more</description>
	<lastBuildDate>Wed, 30 Nov 2011 21:09:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kanwaljeet Singla</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1482</link>
		<dc:creator>Kanwaljeet Singla</dc:creator>
		<pubDate>Sat, 02 Apr 2011 04:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1482</guid>
		<description>Hi Aaron,

Appcmd doesn&#039;t supporting adding a remove tag explicitly. All you can do is add/remove an element and it will decide if adding or removing a tag will get the final result. For removing an element from collection you can use /-files.[value=&#039;string&#039;] which will add the remove tag.

Thanks,
Kanwal</description>
		<content:encoded><![CDATA[<p>Hi Aaron,</p>
<p>Appcmd doesn&#8217;t supporting adding a remove tag explicitly. All you can do is add/remove an element and it will decide if adding or removing a tag will get the final result. For removing an element from collection you can use /-files.[value='string'] which will add the remove tag.</p>
<p>Thanks,<br />
Kanwal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Neff</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1469</link>
		<dc:creator>Aaron Neff</dc:creator>
		<pubDate>Thu, 17 Mar 2011 13:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1469</guid>
		<description>Hi Kanwaljeet,
Thank you for this post on appcmd updates in IIS7.5.
Can appcmd&#160;also&#160;add &quot;remove&quot; tags?&#160; I.e. &quot;removeElement&quot;?&#160; As in this web.config Default Document&#160;example:
&lt;remove value=&quot;index.foo&quot; /&gt;
	&lt;add value=&quot;index.foo&quot; /&gt;
Both&#160;lines are needed, in case index.foo is already added at server level.&#160; BUT, I haven&#039;t found how to add the 1st line (the &quot;remove&quot; line).
I&#039;ve also started a discussion at forums.iis.net: &lt;a href=&quot;http://forums.iis.net/p/1176511/1975248.aspx&quot; rel=&quot;nofollow&quot;&gt;http://forums.iis.net/p/1176511/1975248.aspx&lt;/a&gt;
The docs state this is the syntax for adding a default document:
	&lt;strong&gt;appcmd set config /section:defaultDocument /+files.[value=&#039;&lt;/strong&gt; string &lt;strong&gt;&#039;]&lt;/strong&gt;
That works for adding an &quot;add&quot; tag, and I&#039;ve found that&#160;so does this:
	appcmd set config /section:defaultDocument /+files.&lt;strong&gt;add&lt;/strong&gt;[value=&#039; string &#039;]
But, the following does not work for adding a&#160;&quot;remove&quot; tag:
	appcmd set config /section:defaultDocument /+files.&lt;strong&gt;remove&lt;/strong&gt;[value=&#039; string &#039;]
Any advice here would be greatly appreciated,
	Thank you much, in advance,
	-Aaron</description>
		<content:encoded><![CDATA[<p>Hi Kanwaljeet,<br />
Thank you for this post on appcmd updates in IIS7.5.<br />
Can appcmd&nbsp;also&nbsp;add &quot;remove&quot; tags?&nbsp; I.e. &quot;removeElement&quot;?&nbsp; As in this web.config Default Document&nbsp;example:<br />
&lt;remove value=&quot;index.foo&quot; /&gt;<br />
	&lt;add value=&quot;index.foo&quot; /&gt;<br />
Both&nbsp;lines are needed, in case index.foo is already added at server level.&nbsp; BUT, I haven&#039;t found how to add the 1st line (the &quot;remove&quot; line).<br />
I&#039;ve also started a discussion at forums.iis.net: <a href="http://forums.iis.net/p/1176511/1975248.aspx" rel="nofollow">http://forums.iis.net/p/1176511/1975248.aspx</a><br />
The docs state this is the syntax for adding a default document:<br />
	<strong>appcmd set config /section:defaultDocument /+files.[value=&#039;</strong> string <strong>&#039;]</strong><br />
That works for adding an &quot;add&quot; tag, and I&#039;ve found that&nbsp;so does this:<br />
	appcmd set config /section:defaultDocument /+files.<strong>add</strong>[value=&#039; string &#039;]<br />
But, the following does not work for adding a&nbsp;&quot;remove&quot; tag:<br />
	appcmd set config /section:defaultDocument /+files.<strong>remove</strong>[value=&#039; string &#039;]<br />
Any advice here would be greatly appreciated,<br />
	Thank you much, in advance,<br />
	-Aaron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kanwaljeet Singla</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1157</link>
		<dc:creator>Kanwaljeet Singla</dc:creator>
		<pubDate>Thu, 02 Sep 2010 16:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1157</guid>
		<description>Below is what I gathered from IIS powershell snapin developer Sergei.

In powershell it is possible to do using -location parameter in set-* commands (where this parameter available). This way you could write to a location not only in apphost, but in any config file, depending where parameter -pspath is pointing to.

You don&#039;t need specific path to commit, configuration will be written to the file where pspath points to. Location parameter should be relative to that path. PSPath could take either standard format &quot;MACHINE/WEBROOT/APPHOST&quot; and deeper; or provider path like IIS:\, IIS:\Sites -- both will point to apphost, or iis:\sites\siteFoo\appBar, etc -- those will point to relevant web.config. So, if
 
pspath = iis:\sites
location = &quot;Default Web Site&quot;
 
then we will write to &quot;Default Web Site&quot; location in apphost.
 
location - &quot;siteFoo/appBar&quot;
 
will write to siteFoo/Appbar location in apphost.
 
pspath=&quot;MACHINE/WEBROOT/APPHOST/siteFoo&quot;
location=&quot;appBar&quot;
 
will write to appBar location in siteFoo web.config, if it is not locked.
 
There is one subtle detail. Like InetMgr, our snapin could automatically write to the lowest available configuration file. If you use -force parameter in any set command, then code will take a look, which config above the pspath is writable, and will split original pspath to path, pointing to that file and location -- rest of original effective path. After that it will follow the same logic, as above. In this case -location parameter is not required.</description>
		<content:encoded><![CDATA[<p>Below is what I gathered from IIS powershell snapin developer Sergei.</p>
<p>In powershell it is possible to do using -location parameter in set-* commands (where this parameter available). This way you could write to a location not only in apphost, but in any config file, depending where parameter -pspath is pointing to.</p>
<p>You don&#8217;t need specific path to commit, configuration will be written to the file where pspath points to. Location parameter should be relative to that path. PSPath could take either standard format &#8220;MACHINE/WEBROOT/APPHOST&#8221; and deeper; or provider path like IIS:\, IIS:\Sites &#8212; both will point to apphost, or iis:\sites\siteFoo\appBar, etc &#8212; those will point to relevant web.config. So, if</p>
<p>pspath = iis:\sites<br />
location = &#8220;Default Web Site&#8221;</p>
<p>then we will write to &#8220;Default Web Site&#8221; location in apphost.</p>
<p>location &#8211; &#8220;siteFoo/appBar&#8221;</p>
<p>will write to siteFoo/Appbar location in apphost.</p>
<p>pspath=&#8221;MACHINE/WEBROOT/APPHOST/siteFoo&#8221;<br />
location=&#8221;appBar&#8221;</p>
<p>will write to appBar location in siteFoo web.config, if it is not locked.</p>
<p>There is one subtle detail. Like InetMgr, our snapin could automatically write to the lowest available configuration file. If you use -force parameter in any set command, then code will take a look, which config above the pspath is writable, and will split original pspath to path, pointing to that file and location &#8212; rest of original effective path. After that it will follow the same logic, as above. In this case -location parameter is not required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt D</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1154</link>
		<dc:creator>Matt D</dc:creator>
		<pubDate>Wed, 01 Sep 2010 04:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1154</guid>
		<description>When using appcmd.exe you can use /commit:apphost to commit values using location tags to applicationhost.config. How do you so the same with the powershell webadministration module?</description>
		<content:encoded><![CDATA[<p>When using appcmd.exe you can use /commit:apphost to commit values using location tags to applicationhost.config. How do you so the same with the powershell webadministration module?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kanwaljeet Singla</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1113</link>
		<dc:creator>Kanwaljeet Singla</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1113</guid>
		<description>Hi,

You need to set metadata &quot;defaultManagedRuntimeVersion&quot; to 4.0 for other tools to pick .Net 4 schema. Read http://social.msdn.microsoft.com/Forums/en-SG/dublin/thread/7c0ef535-24db-4d42-baa4-d6b57549aea1.

Thanks,
Kanwal</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You need to set metadata &#8220;defaultManagedRuntimeVersion&#8221; to 4.0 for other tools to pick .Net 4 schema. Read <a href="http://social.msdn.microsoft.com/Forums/en-SG/dublin/thread/7c0ef535-24db-4d42-baa4-d6b57549aea1" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-SG/dublin/thread/7c0ef535-24db-4d42-baa4-d6b57549aea1</a>.</p>
<p>Thanks,<br />
Kanwal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Server Herder</title>
		<link>http://www.ksingla.net/2009/03/new_features_in_configuration_system_and_appcmd_in_iis-75/comment-page-1/#comment-1097</link>
		<dc:creator>Server Herder</dc:creator>
		<pubDate>Thu, 22 Jul 2010 16:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ksingla.net/?p=57#comment-1097</guid>
		<description>How do you do the equivalent of &lt;strong&gt;/clr:4&lt;/strong&gt; using other scripting technologies like WMI?&#160; This post is the closest thing I can find :-) </description>
		<content:encoded><![CDATA[<p>How do you do the equivalent of <strong>/clr:4</strong> using other scripting technologies like WMI?&nbsp; This post is the closest thing I can find <img src='http://www.ksingla.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

