<?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>Search results matching tag 'appCmd'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=appCmd&amp;orTags=0</link><description>Search results matching tag 'appCmd'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Appcmd help on text string carriage return line feed</title><link>http://forums.iis.net/p/1162807/1925442.aspx#1925442</link><pubDate>Thu, 19 Nov 2009 18:50:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925442</guid><dc:creator>brandon.mcgarvey</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I am trying to add a carriage return line feed to a string value on my FTP site&amp;nbsp;via appcmd. I&amp;nbsp;am trying&amp;nbsp;to add a banner message like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;%windir%\System32\inetsrv\appcmd.exe set site&amp;nbsp;MyFTPSite /ftpServer.messages.bannerMessage:&amp;quot;Warning! Unauthorized use is strictly prohibited.&amp;quot;&lt;/p&gt;
&lt;p&gt;I wish to have a carriage return, line feed after &amp;quot;Warning!&amp;quot;, but I cannot figure out what escape characters to use for a carriage return, line feed. When I add the welcome message with&amp;nbsp;CR/LF&amp;nbsp;through the IIS MMC, this is how it looks in the applicationHost.config:&lt;/p&gt;
&lt;p&gt;&amp;lt;messages bannerMessage=&amp;quot;Warning!&lt;strong&gt;&amp;amp;#xD;&amp;amp;#xA;&amp;amp;#xD;&amp;amp;#xA;&lt;/strong&gt;Unauthorized use is strictly prohibited.&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any help appreciated. Thanks.&lt;/p&gt;</description></item><item><title>FTP command filtering using appcmd</title><link>http://forums.iis.net/p/1162760/1925274.aspx#1925274</link><pubDate>Wed, 18 Nov 2009 17:24:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925274</guid><dc:creator>brandon.mcgarvey</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I am trying to figure out how to add FTP&amp;nbsp;command filters using appcmd.exe. I just flat out do not understand the syntax for the command. The syntax that I believe I need to use is one of these:&lt;/p&gt;
&lt;p&gt;appcmd.exe set site&amp;nbsp;MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;string&amp;#39;].command&lt;/p&gt;
&lt;p&gt;appcmd.exe set site MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;string&amp;#39;].allowed&lt;/p&gt;
&lt;p&gt;My goal is to deny MKDIR command. I tried the command below, but it tells me that it cannot find requested collection element. How do I add an element to the collection. I am familiar with adding collections with &amp;quot;appcmd set config&amp;quot;, but this method doesn&amp;#39;t seem the same.&lt;/p&gt;
&lt;p&gt;appcmd.exe set site MyFTPSite /ftpServer.security.commandFiltering.[command=&amp;#39;MKDIR&amp;#39;].allowed:&amp;quot;false&amp;quot;&lt;/p&gt;
&lt;p&gt;If someone can&amp;nbsp;reply back with an example of the syntax, I&amp;#39;d greatly appreciate it. Thanks.&lt;/p&gt;</description></item><item><title>Possible bug: Unable to set the &amp;quot;debug&amp;quot; attribute in the &amp;quot;compilation&amp;quot; section in web.config</title><link>http://forums.iis.net/p/1162636/1924758.aspx#1924758</link><pubDate>Sat, 14 Nov 2009 16:41:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924758</guid><dc:creator>kevin_k</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>
&lt;p&gt;
&lt;span class="Apple-style-span" style="background-color:transparent;border-collapse:separate;font-family:&amp;#39;Times New Roman&amp;#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma,Arial,Helvetica;font-size:12px;white-space:pre-wrap;"&gt;There seems to be a bug in the APPCMD tool that prevents me from changing the &amp;quot;debug&amp;quot; attribute of the &amp;quot;compilation&amp;quot; section of a web.config file. I can change other attributes such as &amp;quot;batch&amp;quot; and &amp;quot;defaultLanguage&amp;quot; but the &amp;quot;debug&amp;quot; attribute refuses to change.&lt;br /&gt;&lt;br /&gt;For example, the following commands work just fine:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /batch:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /defaultLanguage:&amp;quot;c#&amp;quot;&lt;br /&gt;&lt;br /&gt;But changing the &amp;quot;debug&amp;quot; attribute doesn&amp;#39;t:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /debug:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:compilation /debug:true&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve even tried more explicit section paths:&lt;br /&gt;&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:system.web/compilation /debug:false&lt;br /&gt;appcmd set config &amp;quot;MySite&amp;quot; -section:system.web/compilation /debug:true&lt;br /&gt;&lt;br /&gt;I have confirmed this to be the case on IIS7.0 running on Windows 2008 Standard Edition SP2 and IIS 7.5 running on Windows 7 Ultimate Edition.&lt;br /&gt;&lt;p&gt;I also checked the schema file for ASP.NET (C:\Windows\System32\inetsrv\config\schema\ASPNET_schema.xml) and there is no restriction on this setting.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="background-color:transparent;border-collapse:separate;font-family:&amp;#39;Times New Roman&amp;#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"&gt;&lt;span class="Apple-style-span" style="font-family:Tahoma,Arial,Helvetica;font-size:12px;white-space:pre-wrap;"&gt;Thanks&lt;br /&gt;Kevin&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>Re: Redirects in IIS7 propagating out to all other redirect sites?</title><link>http://forums.iis.net/p/1158739/1924340.aspx#1924340</link><pubDate>Wed, 11 Nov 2009 20:03:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924340</guid><dc:creator>SQLRocks</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I responded earlier to this with the suggestion of using a unique directory for each site, which does work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m now using a different technique which is to store the actual redirection configuration at a higher level (applicationhost.config) instead of the site&amp;#39;s web.config file. This allows multiple redirection sites all with the same home directory and yet each can have it&amp;#39;s own unique URL that it redirect to. &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example of the the AppCmd I used to have&amp;nbsp;a site (call it &amp;quot;xxxx&amp;quot;)&amp;nbsp;redirect to&amp;nbsp;&lt;a href="http://yyyy.com/"&gt;http://yyyy.com&lt;/a&gt; without&amp;nbsp;making/changing the web.config file in the site&amp;#39;s home directory.&lt;/p&gt;
&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe set config &amp;quot;xxxx&amp;quot; -section:system.webServer/http&lt;br /&gt;Redirect -enabled:true -destination:http://yyyy.com -httpResponseStatus:Permanent -commitpath:apphost&lt;/p&gt;</description></item><item><title>I want to use appcmd to put &amp;lt;clear /&amp;gt; element into defaultDocument</title><link>http://forums.iis.net/p/1162150/1922532.aspx#1922532</link><pubDate>Wed, 28 Oct 2009 20:19:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922532</guid><dc:creator>brewbill03</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I am trying to set up&amp;nbsp;the same&amp;nbsp;web site on multiple computers.&amp;nbsp; I want to use a bat file to configure default documents.&amp;nbsp; The site has several applications in different virtual directories that are directly under wwwroot.&amp;nbsp; I am using appcmd like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;quot;%windir%\system32\inetsrv\appcmd.exe&amp;quot; set config &amp;quot;Default Web Site/Mytest&amp;quot; -section:defaultDocument /+files.[@start,value=&amp;#39;index.php&amp;#39;] /commit:&amp;quot;Default web site&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;quot;%windir%\system32\inetsrv\appcmd.exe&amp;quot; set config &amp;quot;Default Web Site/Yourtest&amp;quot; -section:defaultDocument /+files.[@start,value=&amp;#39;index.php&amp;#39;] /commit:&amp;quot;Default web site&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;to set up&amp;nbsp;two apps.&amp;nbsp; This gives me the following web.config under wwwroot:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;location path=&amp;quot;Mytest&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultDocument&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;files&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add value=&amp;quot;start.php&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/files&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/defaultDocument&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/location&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;location path=&amp;quot;Yourtest&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultDocument&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;files&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add value=&amp;quot;index.php&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/files&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/defaultDocument&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/location&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Slick (took me forever to get this far).&amp;nbsp; ALMOST what I&amp;#39;m looking for.&amp;nbsp; I could live with this but I&amp;#39;d like to add a clear element:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;files&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add value=&amp;quot;index.php&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/files&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;to the config.&amp;nbsp; Can anyone tell me how to do this using appcmd?&lt;/p&gt;</description></item><item><title>appcmd exit codes</title><link>http://forums.iis.net/p/1160906/1916946.aspx#1916946</link><pubDate>Tue, 15 Sep 2009 00:45:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916946</guid><dc:creator>jamescpk</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;Looking for a list of appcmd exit codes, if it exists. I have a vbscript that&amp;nbsp;checks for the appcmd exit code of 0 or non-zero.&amp;nbsp;e.g.&amp;nbsp;&amp;quot;ReturnCode =&amp;nbsp;wshshell.run appcmd...&amp;quot; returning success for 0 and error for non-zero codes. I would like to know what the exit codes stand for.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you, James&lt;/p&gt;</description></item><item><title>How do I reference a site by ID using IIS7 APPCMD?</title><link>http://forums.iis.net/p/1160581/1915594.aspx#1915594</link><pubDate>Wed, 02 Sep 2009 15:52:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915594</guid><dc:creator>kevin_k</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I know how to reference a site by name to stop and start it? For example:&lt;/p&gt;&lt;pre&gt;&lt;br /&gt;&lt;code&gt;appcmd stop site /site.name:&amp;quot;Microsoft SharePoint Administration&amp;quot;&lt;/code&gt;&lt;/pre&gt;How do I reference a site using its IIS ID? I tried these variations:&lt;br /&gt;

&lt;pre&gt;&lt;code&gt;&lt;br /&gt; appcmd start stop /site.id:2&lt;br /&gt; appcmd start stop /site.id:&amp;quot;2&amp;quot;&lt;br /&gt; appcmd start stop /site.id:2&lt;br /&gt; appcmd start site /section:sites /[id=&amp;#39;2&amp;#39;]&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;However they all return the following error:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;br /&gt;ERROR ( message:Must specify the SITE object with identifier. )&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;Thanks&lt;/pre&gt;&lt;pre&gt;Kevin &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Setting Authentication on a Folder Under a Virtual Directory using Appcmd or Microsoft.Web.Administration in IIS7</title><link>http://forums.iis.net/p/1159837/1912660.aspx#1912660</link><pubDate>Wed, 05 Aug 2009 23:07:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912660</guid><dc:creator>robblis</dc:creator><cs:applicationKey>iis7_-_extensibility--1</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve been trying to find a way using scripting (appcmd)&amp;nbsp;or the Microsoft.Web.Administration class in C# to change the Authentication settings on a Folder under&amp;nbsp;a Virtual directory. &lt;/p&gt;
&lt;p&gt;Does anybody have an idea how to do this?&lt;/p&gt;
&lt;p&gt;Thanks, Rob&lt;/p&gt;</description></item><item><title>Re: How to translate a IISAPP.vbs command to IIS7 Appcmd.exe</title><link>http://forums.iis.net/p/1159429/1911087.aspx#1911087</link><pubDate>Tue, 21 Jul 2009 19:32:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911087</guid><dc:creator>davcox</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;This will show you the details:&amp;nbsp;&lt;br /&gt;appcmd apppool /?&lt;/p&gt;
&lt;p&gt;This will do the equivalent:&lt;br /&gt;appcmd recycle apppool &amp;quot;MyAppPool&amp;quot;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: appcmd backup bug?</title><link>http://forums.iis.net/p/1158958/1909465.aspx#1909465</link><pubDate>Tue, 07 Jul 2009 16:28:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909465</guid><dc:creator>davcox</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;Hmm, it looks like you may have found a bug ... basically AppCMD is hardcoded to look at the default History location, rather than look up the history location from config and then reference that location.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Perhaps you can trick AppCMD by creating an alias in the &amp;quot;default&amp;quot; History folder that maps to your custom folder.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Dave &lt;/p&gt;</description></item></channel></rss>