Why would you want to do that? You can have your website root directory to be in any drive you want, but to install IIS, i think it is set to be installed wherever your root Windows directory is.
Of course you can do that, and it's in fact a good thing to do because most attacks rely on IIS to be installed in it's default location (C:\Inetpub\) simply by moving IIS to drive D: you have eliminated a great deal of exposure.
Even thou this is possble, the technique used requires that Windows be installed with an unattended script, however, I sucessfully done just what you asking in IIS 5 after Windows and IIS were installed.
Microsoft answered this question in question: (Q274140), but the article is no longer found in the web site, I keept a copy of it on my server (lucky me) which you can access here:
this is the original tech article that explained the process of moving IIS default drive/folder, it provides a script that you have to: copy > create > change > run this script can also change dirs for SMTP/FTP and other services, disable the services you don't have or need to change.
There is an excellent article on the IISAnswers website which describese exactly what you want to do. I have used this info myself in building some of our boxes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.