<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style:
initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">It seems that Microsoft didn’t thought about what could
happen, and how dangerous it could be, if a Web- or FTP-Server is using a well known directory on the system drive. So, they “decided?” not only to use files and directories there. No, they install everything of IIS 6 plus the Web- and FTP-Contents to “c:\inetpub”. </div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width:
0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">I know there
are many solution around for moving IIS 6 to a different drive and/folder, but here you will find a short description how to install (not just to move) IIS6 to a different location.</div><div
style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style:
initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">A
short desription with an example</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width:
0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">First, we will
define two variables (I like variables ),
you need to replace within the scripts and templates below. This helps us to make clear what you have to change by yourself.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial;
background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px;
padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[###IISDrive###] should be the target drive where you want IIS to be installed to, which should be anything except “c:” .
We will use d: within this example. Be sure that you don’t forget to end the drive with an “:”.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial;
border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right:
0px; padding-top: 0px; vertical-align: baseline;">[###IISFolder###] will be the target folder on the drive defined above. We have to double each “\”. So within our example the target folder “\iisroot” the “###IISFolder###” needs to be replaced with “\\wwwroot”
(“\Inetpub\somewhere” with doubled “\” will then be “\\Inetpub\\somewhere”.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width:
0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top:
0px; vertical-align: baseline;">Now we can start preparing the installation.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width:
0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top:
0px; vertical-align: baseline;">1.
Create necessary registry keys</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width:
0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Just prepare
a file like below and replace the variables.
IIS6_preInstall.reg :
----snip----
Windows Registry Editor Version 5.00</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width:
0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Contro\ContentIndex\Catalogs\Web]
“Location”=”[###IISDrive###][###IISFolder###]”
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp]
“PathWWWRoot”=”[###IISDrive###][###IISFolder###]”
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InetStp]
“PathWWWRoot”=”[###IISDrive###][###IISFolder###]”
----snap----</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width:
0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Now save the file and execute it. This
will import the perviously defined values to the registry.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color:
initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align:
baseline;">Please check the values within the registry to see if it was successful: Location and PathWWWRoot should be now “D:\\iisroot” for our example values. All Correct ??? Fine </div><div
style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style:
initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">2.
Create directory</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width:
0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Create the directory regarding your variables
above (e.g. mkdir D:\Inetpub\somewhere).</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width:
0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">3.
DONE </div><div
style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style:
initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">If you now installing some IIS Services like WWW or SMTP,
all this will go to your new location. To fulfil your companies guidelines or policies, you can also set the registry keys by GPOs to a WebServer OU in your Active Directory.</div><div style="background-attachment: initial; background-clip: initial; background-color:
transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom:
1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">btw…
and to answer THE upcoming question :
With IIS7 this is not longer working, but there is a solution to move anything. Seems that MS didn't want to learn.
</div>
dirsu
1 Post
Moving/Installing IIS6 to a different location (drive, folder)
Oct 17, 2011 08:22 AM|LINK
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">It seems that Microsoft didn’t thought about what could happen, and how dangerous it could be, if a Web- or FTP-Server is using a well known directory on the system drive. So, they “decided?” not only to use files and directories there. No, they install everything of IIS 6 plus the Web- and FTP-Contents to “c:\inetpub”.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">I know there are many solution around for moving IIS 6 to a different drive and/folder, but here you will find a short description how to install (not just to move) IIS6 to a different location.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">A short desription with an example</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">First, we will define two variables (I like variables
IIS6_preInstall.reg :
----snip----
Windows Registry Editor Version 5.00</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Contro\ContentIndex\Catalogs\Web]
“Location”=”[###IISDrive###][###IISFolder###]”
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp]
“PathWWWRoot”=”[###IISDrive###][###IISFolder###]”
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\InetStp]
“PathWWWRoot”=”[###IISDrive###][###IISFolder###]”
----snap----</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Now save the file and execute it. This will import the perviously defined values to the registry.</div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, Helvetica, sans-serif; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Please check the values within the registry to see if it was successful: Location and PathWWWRoot should be now “D:\\iisroot” for our example values. All Correct ??? Fine
With IIS7 this is not longer working, but there is a solution to move anything. Seems that MS didn't want to learn.
</div>
installation IIS6 IIS 6.0 IIS 6.0 Install/Setup IIS 6.0 Install/Setup 7.0 IIS 6 Installing Move Location
HCamper
8048 Posts
Re: Moving/Installing IIS6 to a different location (drive, folder)
Oct 17, 2011 08:33 AM|LINK
Hi,
Thanks for Sharing the Information for IIS 6.0 .
For IIS 7 and the Up coming Question:
Maybe Thomas IIS Teams Blog suggestion and Script
http://blogs.iis.net/thomad/archive/2008/02/10/moving-the-iis7-inetpub-directory-to-a-different-drive.aspx
can be an addition to this ?
Martin
Community Member Award 2011