<?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: How to Change the IIS Path for a SharePoint Web Application</title>
	<atom:link href="http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/</link>
	<description>A SharePoint Developer's Blog</description>
	<lastBuildDate>Wed, 18 Aug 2010 21:49:15 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shola Salako</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-100</link>
		<dc:creator>Shola Salako</dc:creator>
		<pubDate>Wed, 18 Aug 2010 21:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-100</guid>
		<description>Thanks for posting this!  Step 3 resolved an issue in my very large farm.  Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this!  Step 3 resolved an issue in my very large farm.  Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Marie Pirelli</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-99</link>
		<dc:creator>Jean-Marie Pirelli</dc:creator>
		<pubDate>Wed, 16 Jun 2010 08:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-99</guid>
		<description>Thanks a lot, you saved my day, too.
I simplified a bit the Powershell code (applicable to an app, too, of course) in order to remove the need for the SPSite. Here it is:

[System.Reflection.Assembly]::LoadWithPartialName(&quot;Microsoft.SharePoint&quot;)

function Change-Path([string] $WebAppUrl, [string] $NewPath) { 

    if ([String]::IsNullOrEmpty($WebAppUrl) -or [String]::IsNullOrEmpty($NewPath)) { 
		write-host &quot;Usage: Change-Path Web_path_URL New_Physical_Path&quot; 
		return
    }

	$di = new-object System.IO.DirectoryInfo $NewPath
	if ($di.Exists -eq $false) {
		write-host &quot;Path &quot;, $NewPath, &quot; does not exist&quot;
		return
	}    
    
    
	Write-Host &quot;Moving &quot;, $WebAppUrl, &quot; to &quot;, $NewPath

	$WebApp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup($WebAppUrl)
	
	$IISSettings = $WebApp.IisSettings[[Microsoft.SharePoint.Administration.SPUrlZone]::Default]
	$IISSettings.Path = $NewPath
	
	$WebApp.Update()
}</description>
		<content:encoded><![CDATA[<p>Thanks a lot, you saved my day, too.<br />
I simplified a bit the Powershell code (applicable to an app, too, of course) in order to remove the need for the SPSite. Here it is:</p>
<p>[System.Reflection.Assembly]::LoadWithPartialName(&#8221;Microsoft.SharePoint&#8221;)</p>
<p>function Change-Path([string] $WebAppUrl, [string] $NewPath) { </p>
<p>    if ([String]::IsNullOrEmpty($WebAppUrl) -or [String]::IsNullOrEmpty($NewPath)) {<br />
		write-host &#8220;Usage: Change-Path Web_path_URL New_Physical_Path&#8221;<br />
		return<br />
    }</p>
<p>	$di = new-object System.IO.DirectoryInfo $NewPath<br />
	if ($di.Exists -eq $false) {<br />
		write-host &#8220;Path &#8220;, $NewPath, &#8221; does not exist&#8221;<br />
		return<br />
	}    </p>
<p>	Write-Host &#8220;Moving &#8220;, $WebAppUrl, &#8221; to &#8220;, $NewPath</p>
<p>	$WebApp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup($WebAppUrl)</p>
<p>	$IISSettings = $WebApp.IisSettings[[Microsoft.SharePoint.Administration.SPUrlZone]::Default]<br />
	$IISSettings.Path = $NewPath</p>
<p>	$WebApp.Update()<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders Houlberg-Nielsen</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-98</link>
		<dc:creator>Anders Houlberg-Nielsen</dc:creator>
		<pubDate>Wed, 09 Jun 2010 16:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-98</guid>
		<description>Great, saved my day</description>
		<content:encoded><![CDATA[<p>Great, saved my day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Error: The web.config is invalid on this IIS Web Site &#171; Horus Alkebulan 2009 &#8211; Professional Edition</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-96</link>
		<dc:creator>Error: The web.config is invalid on this IIS Web Site &#171; Horus Alkebulan 2009 &#8211; Professional Edition</dc:creator>
		<pubDate>Fri, 14 May 2010 21:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-96</guid>
		<description>[...] to Change the IIS Path for a SharePoint Web Application http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-applicati...   Posted in SharePoint &#124; Leave a Comment &#187;Tags: [...]</description>
		<content:encoded><![CDATA[<p>[...] to Change the IIS Path for a SharePoint Web Application <a href="http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-applicati.." rel="nofollow">http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-applicati..</a>.   Posted in SharePoint | Leave a Comment &#187;Tags: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Horus</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-95</link>
		<dc:creator>Horus</dc:creator>
		<pubDate>Fri, 14 May 2010 18:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-95</guid>
		<description>Fantastic! Step 3 is what we were missing and it resolved a mysterious issue that brought deployment to a screeching halt.

Dude, you rock!</description>
		<content:encoded><![CDATA[<p>Fantastic! Step 3 is what we were missing and it resolved a mysterious issue that brought deployment to a screeching halt.</p>
<p>Dude, you rock!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-90</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Wed, 13 Jan 2010 13:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-90</guid>
		<description>Thank you very much for this post, you have saved my day. I have created simple console application that is based on your code at http://codearound.blogspot.com/2010/01/sharepoint-how-to-move-virtual.html.</description>
		<content:encoded><![CDATA[<p>Thank you very much for this post, you have saved my day. I have created simple console application that is based on your code at <a href="http://codearound.blogspot.com/2010/01/sharepoint-how-to-move-virtual.html." rel="nofollow">http://codearound.blogspot.com/2010/01/sharepoint-how-to-move-virtual.html.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dschram</title>
		<link>http://www.mattjimison.com/blog/2009/02/26/how-to-change-the-iis-path-for-a-sharepoint-web-application/comment-page-1/#comment-77</link>
		<dc:creator>dschram</dc:creator>
		<pubDate>Fri, 08 May 2009 14:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-77</guid>
		<description>Thanks for this helpful overview! I would like to add a comment and a question:

1) Step 2 can be a bit more complex than simply changing the local path. (See Microsoft TechNet http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a59a2665-9078-43ef-8b5a-5bf9bcacc95e.mspx?mfr=true)

2) Since I am an administrator, not a developer, is there a way to accomplish step 3 without writing code?  For example, do you if there are stsadm commands that can be used to do this?</description>
		<content:encoded><![CDATA[<p>Thanks for this helpful overview! I would like to add a comment and a question:</p>
<p>1) Step 2 can be a bit more complex than simply changing the local path. (See Microsoft TechNet <a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a59a2665-9078-43ef-8b5a-5bf9bcacc95e.mspx?mfr=true)" rel="nofollow">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a59a2665-9078-43ef-8b5a-5bf9bcacc95e.mspx?mfr=true)</a></p>
<p>2) Since I am an administrator, not a developer, is there a way to accomplish step 3 without writing code?  For example, do you if there are stsadm commands that can be used to do this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
