<?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>IIS 7.0  - PowerShell</title><link>http://forums.iis.net/1151.aspx</link><description>All about IIS 7.0 PowerShell integration. Use this forum to ask PowerShell questions, discuss issues, request features and yell at IIS team members.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887570.aspx</link><pubDate>Mon, 15 Dec 2008 15:46:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887570</guid><dc:creator>marcoshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887570.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887570</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;zdenek:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;zdenek:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; because the powershell 1 is installed when SQL 2008 &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;
Actually I was wrong about this one. Although SQL Server 2008 requires powershell 1, it comes with windows 2008 according to some docs i found on microsoft website.&lt;br /&gt;&lt;br /&gt;I will still investigate further to see if I can get it all working under PowerShell 1 though and if I find solution I&amp;#39;ll post it here.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Yes, PowerShell v1 does come with 2008.&amp;nbsp; It is there as a feature ready to be installed (but isn&amp;#39;t installed by default).&amp;nbsp; One just needs to add it via the Server Manager. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887568.aspx</link><pubDate>Mon, 15 Dec 2008 15:30:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887568</guid><dc:creator>zdenek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887568.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887568</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;zdenek:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; because the powershell 1 is installed when SQL 2008 &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;
Actually I was wrong about this one. Although SQL Server 2008 requires powershell 1, it comes with windows 2008 according to some docs i found on microsoft website.&lt;br /&gt;&lt;br /&gt;I will still investigate further to see if I can get it all working under PowerShell 1 though and if I find solution I&amp;#39;ll post it here.</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887479.aspx</link><pubDate>Sun, 14 Dec 2008 00:51:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887479</guid><dc:creator>marcoshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887479.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887479</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;zdenek:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;marcoshaw:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; It is&amp;nbsp; possible you will be able to get WMI to work to set this property locally, but if you&amp;#39;re goal was to use WMI so you can do this remotely, you&amp;#39;ll need to find an alternate method. &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;My goal is to be able to create websites automatically on the local machine. I would like to keep the installation down to bare bones without adding additional features, that is why i have not yet gone out and download and install the community preview of powershell version 2 because the powershell 1 is installed when SQL 2008 is installed and so i was trying to use it since it was already on the system.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I would say go with appcmd.exe.&amp;nbsp; Were you able to find it?&amp;nbsp; There&amp;#39;s also a .NET library that you can load to do IIS stuff... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887427.aspx</link><pubDate>Fri, 12 Dec 2008 19:45:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887427</guid><dc:creator>marcoshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887427.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887427</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;sergeia:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;Zdenek, you could use IIS WMI provider locally without any limitations. If you could use Powershell, you could use it through Powershell. IIS namespace in WMI&amp;nbsp;is &amp;quot;WebAdministration&amp;quot;. I am not a big expert in v1 WMI support for Powershell, I know it is pretty limited compared to v2 additions. You probably could use get-wmiobject to access your application pool, set the property, then use set-wmiobject to save changes back.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://forums.iis.net/AddPost.aspx?ReplyToPostID=1887426&amp;amp;Quote=False"&gt;Reply to an Existing Message : The Official Microsoft IIS Site&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And before you go looking for set-wmiobject in PowerShell v1... Don&amp;#39;t: there is no such cmdlet.&amp;nbsp; You typically do this:&lt;/p&gt;&lt;p&gt;$wmi=get-wmiobject&lt;/p&gt;&lt;p&gt;#change your WMI object&lt;/p&gt;&lt;p&gt;$wmi.put()&lt;/p&gt;&lt;p&gt;Now, I tried that with this particular setting via WMI, and it didn&amp;#39;t work. &lt;/p&gt;&lt;p&gt;See about &amp;quot;put()&amp;quot; and v2 WMI features here:&lt;/p&gt;&lt;p&gt;http://www.microsoft.com/technet/scriptcenter/topics/winpsh/wmiin2.mspx &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887426.aspx</link><pubDate>Fri, 12 Dec 2008 19:30:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887426</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887426.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887426</wfw:commentRss><description>&lt;p&gt;Zdenek, you could use IIS WMI provider locally without any limitations. If you could use Powershell, you could use it through Powershell. IIS namespace in WMI&amp;nbsp;is &amp;quot;WebAdministration&amp;quot;. I am not a big expert in v1 WMI support for Powershell, I know it is pretty limited compared to v2 additions. You probably could use get-wmiobject to access your application pool, set the property, then use set-wmiobject to save changes back.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887403.aspx</link><pubDate>Fri, 12 Dec 2008 16:16:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887403</guid><dc:creator>zdenek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887403.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887403</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;marcoshaw:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; It is  possible you will be able to get WMI to work to set this property locally, but if you&amp;#39;re goal was to use WMI so you can do this remotely, you&amp;#39;ll need to find an alternate method. &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;My goal is to be able to create websites automatically on the local machine. I would like to keep the installation down to bare bones without adding additional features, that is why i have not yet gone out and download and install the community preview of powershell version 2 because the powershell 1 is installed when SQL 2008 is installed and so i was trying to use it since it was already on the system.</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887380.aspx</link><pubDate>Fri, 12 Dec 2008 14:15:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887380</guid><dc:creator>marcoshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887380.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887380</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;zdenek:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;As I mentioned earlier in the thread IIS:\anything does not work, i get for example&lt;br /&gt;&lt;br /&gt;
Set-Item : Cannot find drive. A drive with name &amp;#39;iis&amp;#39; does not exist.&lt;br /&gt;&lt;br /&gt;
I am attempting to set the value via standard wmi interface objects, any thoughts?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OK, so a few things:&lt;/p&gt;&lt;p&gt;1. appcmd.exe should be there.&amp;nbsp; Did you check the directory I mentioned?&lt;/p&gt;&lt;p&gt;2. As Sergei mentions, to get access to the iis:\ provider, you need to install the PowerShell snap-in.&lt;/p&gt;&lt;p&gt;3. I wasn&amp;#39;t aware, but as Sergei mentions, you can&amp;#39;t access the IIS WMI provider remotely.&amp;nbsp; It is&amp;nbsp; possible you will be able to get WMI to work to set this property locally, but if you&amp;#39;re goal was to use WMI so you can do this remotely, you&amp;#39;ll need to find an alternate method. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887323.aspx</link><pubDate>Thu, 11 Dec 2008 22:52:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887323</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887323.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887323</wfw:commentRss><description>&lt;p&gt;OK, provider is actually released &amp;quot;out of band&amp;quot;. Currently it is in Technical Preview phase, you could set it up from this web site. Please find links to installation bits here: &lt;a href="http://blogs.iis.net/thomad/archive/2008/07/03/ctp2-of-iis7-powershell-provider-released.aspx"&gt;http://blogs.iis.net/thomad/archive/2008/07/03/ctp2-of-iis7-powershell-provider-released.aspx&lt;/a&gt;. There also are links to some learning materials. You don&amp;#39;t need any of above components to work through Powershell provider, only Powershell, any cut of IIS and provider itself.&lt;/p&gt;
&lt;p&gt;If you use Powershell v1.0, WMI will help you only on local machine, it doesn&amp;#39;t work remotely with IIS provider. Besides, WMI support in v1 was fairly limited.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887322.aspx</link><pubDate>Thu, 11 Dec 2008 22:34:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887322</guid><dc:creator>zdenek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887322.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887322</wfw:commentRss><description>&lt;p&gt;windows 2008 web edition server&lt;/p&gt;
&lt;p&gt;powershell installation (version 1)&lt;/p&gt;
&lt;p&gt;I have installed following management roles for IIS:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Management tools&lt;/li&gt;&lt;li&gt;IIS Management Console&lt;/li&gt;&lt;li&gt;IIS Management Scripts And Tools&lt;/li&gt;&lt;li&gt;Management Service&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I do not have any IIS 6 compatibility stuff installed&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887321.aspx</link><pubDate>Thu, 11 Dec 2008 22:19:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887321</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887321.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887321</wfw:commentRss><description>&lt;p&gt;Then you have problem with IIS provider installation. Check that you have default drive IIS: before doing anything. Depending how you installed our components, you may need to add IIS snapin to Powershell.&lt;/p&gt;
&lt;p&gt;Which platform and which bits of IIS provider are you using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887318.aspx</link><pubDate>Thu, 11 Dec 2008 21:36:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887318</guid><dc:creator>zdenek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887318.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887318</wfw:commentRss><description>As I mentioned earlier in the thread IIS:\anything does not work, i get for example&lt;br /&gt;&lt;br /&gt;
Set-Item : Cannot find drive. A drive with name &amp;#39;iis&amp;#39; does not exist.&lt;br /&gt;&lt;br /&gt;
I am attempting to set the value via standard wmi interface objects, any thoughts?</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887243.aspx</link><pubDate>Thu, 11 Dec 2008 04:47:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887243</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887243.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887243</wfw:commentRss><description>&lt;p&gt;Hmm, I think it makes sense to mention, that when you have object stored in variable, and change its property, it will not be updated in the storage. Just like in almost any other environment. Only properties defined as script property or code property may have instant access to the storage objects. &lt;/p&gt;
&lt;p&gt;Therefore you should use command that points to the object in configuration through path, as I did above. To update object in storage you could use &amp;quot;set-item&amp;quot; command taking modifued object from the pipeline or as parameter, but it always will be slower than direct command:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;$apppool | set-item&lt;/p&gt;
&lt;p&gt;set-item iis:\apppools\thispool -value $thatPool&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887241.aspx</link><pubDate>Thu, 11 Dec 2008 03:49:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887241</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887241.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887241</wfw:commentRss><description>&lt;p&gt;It is simple: you need to call set-item property for your pool:&lt;/p&gt;
&lt;p&gt;&amp;gt;set-itemproperty iis:\apppools\yourPool -name &amp;nbsp;failure.rapidFailProtection -value false&lt;/p&gt;
&lt;p&gt;IIS provider supports complex property names for embedded properties: in case of child element you use dot, in case of collection you use array notation -- like foo.bar[name=&amp;quot;someName&amp;quot;].subelement. It will work for any node from the provider namespace: site, apppool, application, etc.&lt;/p&gt;
&lt;p&gt;--Sergei&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887085.aspx</link><pubDate>Tue, 09 Dec 2008 19:48:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887085</guid><dc:creator>marcoshaw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887085.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887085</wfw:commentRss><description>&lt;p&gt;&amp;quot;appcmd.exe&amp;quot; is not part of PowerShell, but a new command-line interface that was shipped with 2008 for doing IIS stuff.&lt;/p&gt;&lt;p&gt;I have it in c:\windows\system32\inetsrv.&lt;/p&gt;&lt;p&gt;Check that dir.&amp;nbsp; I can&amp;#39;t remember if I needed to do anything special to get it, but I&amp;#39;ll double-check. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to change value for RapidFailProtection of ApplicationPool.Failure?</title><link>http://forums.iis.net/thread/1887082.aspx</link><pubDate>Tue, 09 Dec 2008 19:34:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887082</guid><dc:creator>zdenek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887082.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887082</wfw:commentRss><description>&lt;p&gt;how do you get &amp;quot;appcmd&amp;quot; - i have just basic installation of windows 2008 web edition server with standard windows powershell installation (version 1) and i don&amp;#39;t have appcmd on my machine, is it something that&amp;#39;s in the preview version 2 of powershell or is it a role for IIS to install or some settings?&lt;/p&gt;
&lt;p&gt;From the role standpoint i have installed following management roles server:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Management tools&lt;/li&gt;&lt;li&gt;IIS Management Console&lt;/li&gt;&lt;li&gt;IIS Management Scripts And Tools&lt;/li&gt;&lt;li&gt;Management Service&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I do not have any IIS 6 compatibility stuff installed&lt;/p&gt;</description></item></channel></rss>