<?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: New-WebApplication leaves open handles</title><link>http://forums.iis.net/thread/1890020.aspx</link><pubDate>Wed, 14 Jan 2009 23:26:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890020</guid><dc:creator>sergeia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1890020.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1890020</wfw:commentRss><description>&lt;p&gt;Thanks, I see it. I will open a bug and it will be fixed in final release.&lt;/p&gt;
&lt;p&gt;--Sergei&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: New-WebApplication leaves open handles</title><link>http://forums.iis.net/thread/1887320.aspx</link><pubDate>Thu, 11 Dec 2008 21:58:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887320</guid><dc:creator>VaderPi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887320.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887320</wfw:commentRss><description>This issue is also caused by running the new-item command with a type of application.

&lt;pre&gt;
New-Item &amp;quot;IIS:\Sites\Api\v0&amp;quot; -physicalPath &amp;quot;D:\www\api\v0&amp;quot; -type Application
&lt;/pre&gt;</description></item><item><title>New-WebApplication leaves open handles</title><link>http://forums.iis.net/thread/1887311.aspx</link><pubDate>Thu, 11 Dec 2008 20:53:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887311</guid><dc:creator>VaderPi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887311.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1151&amp;PostID=1887311</wfw:commentRss><description>Handles to the web application&amp;#39;s physical directory and the parent site&amp;#39;s physical directory are left open after running the New-WebApplication command. This results in not being able to manipulate the directories due to access is denied errors. Below is a transaction of commands that illustrates the issue. Handle is being used to detect that the handles are left open.

&lt;pre&gt;
PS C:\Source\api\Tools\Deployment&amp;gt; c:\handle api

Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

System             pid: 4       3C8: C:\Windows\System32\setupapi.dll
System             pid: 4       480: C:\Windows\System32\advapi32.dll
System             pid: 4       4B0: C:\Windows\System32\dnsapi.dll
java.exe           pid: 1608    374: C:\Program Files\apache-activemq-5.1.0\lib\web\jsp-api-2.1-6.1.9.jar
java.exe           pid: 1608    384: C:\Program Files\apache-activemq-5.1.0\lib\web\slf4j-api-1.5.0.jar
java.exe           pid: 1608    3D4: C:\Program Files\apache-activemq-5.1.0\lib\jaxb-api-2.0.jar
java.exe           pid: 1608    3E0: C:\Program Files\apache-activemq-5.1.0\lib\stax-api-1.0.jar
java.exe           pid: 1608    564: C:\Program Files\Java\jre6\lib\ext\sunmscapi.jar
handle.exe         pid: 6856      8: C:\Source\api\Tools\Deployment
PS C:\Source\api\Tools\Deployment&amp;gt; New-WebSite &amp;quot;Api&amp;quot; -HostHeader &amp;quot;*&amp;quot; -PhysicalPath &amp;quot;D:\www\api&amp;quot;

Name             ID   State      Physical Path                  Bindings
----             --   -----      -------------                  --------
Api              3               D:\www\api                     http *:80:*
New-WebSite : The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
At line:1 char:12
+ New-WebSite  &amp;lt;&amp;lt;&amp;lt; c:\handle api

Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

System             pid: 4       3C8: C:\Windows\System32\setupapi.dll
System             pid: 4       480: C:\Windows\System32\advapi32.dll
System             pid: 4       4B0: C:\Windows\System32\dnsapi.dll
java.exe           pid: 1608    374: C:\Program Files\apache-activemq-5.1.0\lib\web\jsp-api-2.1-6.1.9.jar
java.exe           pid: 1608    384: C:\Program Files\apache-activemq-5.1.0\lib\web\slf4j-api-1.5.0.jar
java.exe           pid: 1608    3D4: C:\Program Files\apache-activemq-5.1.0\lib\jaxb-api-2.0.jar
java.exe           pid: 1608    3E0: C:\Program Files\apache-activemq-5.1.0\lib\stax-api-1.0.jar
java.exe           pid: 1608    564: C:\Program Files\Java\jre6\lib\ext\sunmscapi.jar
handle.exe         pid: 7132      8: C:\Source\api\Tools\Deployment
PS C:\Source\api\Tools\Deployment&amp;gt; New-WebApplication -Site &amp;quot;Api&amp;quot; -Name &amp;quot;v0&amp;quot; -PhysicalPath &amp;quot;D:\www\api\v0&amp;quot;

Name                          ApplicationPool               EnabledProtocols              PhysicalPath
----                          ---------------               ----------------              ------------
v0                            DefaultAppPool                http                          D:\www\api\v0


PS C:\Source\api\Tools\Deployment&amp;gt; c:\handle api

Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

System             pid: 4       3C8: C:\Windows\System32\setupapi.dll
System             pid: 4       480: C:\Windows\System32\advapi32.dll
System             pid: 4       4B0: C:\Windows\System32\dnsapi.dll
java.exe           pid: 1608    374: C:\Program Files\apache-activemq-5.1.0\lib\web\jsp-api-2.1-6.1.9.jar
java.exe           pid: 1608    384: C:\Program Files\apache-activemq-5.1.0\lib\web\slf4j-api-1.5.0.jar
java.exe           pid: 1608    3D4: C:\Program Files\apache-activemq-5.1.0\lib\jaxb-api-2.0.jar
java.exe           pid: 1608    3E0: C:\Program Files\apache-activemq-5.1.0\lib\stax-api-1.0.jar
java.exe           pid: 1608    564: C:\Program Files\Java\jre6\lib\ext\sunmscapi.jar
powershell.exe     pid: 492     55C: D:\www\api
powershell.exe     pid: 492     7EC: D:\www\api
powershell.exe     pid: 492     8DC: D:\www\api\v0
handle.exe         pid: 5284      8: C:\Source\api\Tools\Deployment
PS C:\Source\api\Tools\Deployment&amp;gt;
&lt;/pre&gt;</description></item></channel></rss>