<?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>Mon, 19 Dec 2011 06:34:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: scott</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-162</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Wed, 30 Nov 2011 13:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-162</guid>
		<description>This is great - thanks!  I did have to go in and manually change my permissions on the new folder giving everyone read access, but other than that, worked like a charm.</description>
		<content:encoded><![CDATA[<p>This is great &#8211; thanks!  I did have to go in and manually change my permissions on the new folder giving everyone read access, but other than that, worked like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</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-119</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 12 Aug 2011 23:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-119</guid>
		<description>In some cases, calling $spweb.provisionglobally() will cause each WFE to make the updates in IIS. If Path is one of those settings that doesn&#039;t get updated w/ just ProvisionGlobally(), you can call $spweb.UnprovisionGlobally($true) followed by $spweb.ProvisionGlobally() to recreate the sites in IIS via SharePoint.

This alleviates the need to do the file copy and IIS changes completely.

Note: Any customization done in IIS Manager or manually to files would be lost.</description>
		<content:encoded><![CDATA[<p>In some cases, calling $spweb.provisionglobally() will cause each WFE to make the updates in IIS. If Path is one of those settings that doesn&#8217;t get updated w/ just ProvisionGlobally(), you can call $spweb.UnprovisionGlobally($true) followed by $spweb.ProvisionGlobally() to recreate the sites in IIS via SharePoint.</p>
<p>This alleviates the need to do the file copy and IIS changes completely.</p>
<p>Note: Any customization done in IIS Manager or manually to files would be lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mjimison</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-118</link>
		<dc:creator>mjimison</dc:creator>
		<pubDate>Fri, 05 Aug 2011 19:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-118</guid>
		<description>Shwetha,

Any advice you take from this blog is done at your own risk, but if you make the update in your production environment, I would strongly urge you to plan accordingly in terms of first pre-testing in a UAT environment, taking proper disaster / recovery steps, as well as scheduling a good amount of time to make the update. Make sure that the appropriate changes are made on all of your WFE&#039;s - i.e. copying the current directory of files over to your new location as well as changing the path in IIS. I would take the other comments on this post into consideration, in terms of looking at first-hand experience of users who have performed the operation. I also have not personally done this in SharePoint 2010, so keep that in mind if that is your case. If you do decide to go forward with this method, good luck to you, and be sure to report back here with how it went!</description>
		<content:encoded><![CDATA[<p>Shwetha,</p>
<p>Any advice you take from this blog is done at your own risk, but if you make the update in your production environment, I would strongly urge you to plan accordingly in terms of first pre-testing in a UAT environment, taking proper disaster / recovery steps, as well as scheduling a good amount of time to make the update. Make sure that the appropriate changes are made on all of your WFE&#8217;s &#8211; i.e. copying the current directory of files over to your new location as well as changing the path in IIS. I would take the other comments on this post into consideration, in terms of looking at first-hand experience of users who have performed the operation. I also have not personally done this in SharePoint 2010, so keep that in mind if that is your case. If you do decide to go forward with this method, good luck to you, and be sure to report back here with how it went!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shwetha veeraiah</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-117</link>
		<dc:creator>shwetha veeraiah</dc:creator>
		<pubDate>Mon, 01 Aug 2011 01:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattjimison.com/blog/?p=13#comment-117</guid>
		<description>Hi,
   Thanks a lot for the detailed information.

We are also in the need of changing the root directory of the web application on our production server(large farm). Is it safe to go ahead with your approach? Your suggestions are highly appreciated.

Thanks
Shwetha</description>
		<content:encoded><![CDATA[<p>Hi,<br />
   Thanks a lot for the detailed information.</p>
<p>We are also in the need of changing the root directory of the web application on our production server(large farm). Is it safe to go ahead with your approach? Your suggestions are highly appreciated.</p>
<p>Thanks<br />
Shwetha</p>
]]></content:encoded>
	</item>
	<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(&#8220;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>

