Sunday, May 6, 2012

Move IIS7 root script

In my previous post I indicated that the VirtualDirectory Path of the SharePoint Central Administration Web Application in a configuration file was incorrect. I have found the source of this error.


Before I started the SP2010 installation I decided to move the inetpub directory to another drive. I searched for this on the internet and found a script to do this. Unfortunately there was an error in this script which added a second backslash (”\”) to the VirtualDirectory Path.


At first I did not know what caused this error so I searched in the registry. There I found the registry key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp) where IIS stores the location of the WWWROOT. (see below)


regkey


The double backslashes where caused by an error in the script that I used to move the inetpub directory from C: to D:. If you also used the moveIIS7root.bat script which I found here, you can download the correct version here. I made changes in lines 46 and 47 (changed %moveto%\inetpub to %moveto%inetpub).


UPDATE August 31, 2011


Also check the Advanced Settings in IIS per website (see below).


advanced


Here you also have to change the Physical Path (see below)


pp


Tags: IIS, Registry, SP2010


View the original article here

No comments:

Post a Comment