This project has moved and is read-only. For the latest updates, please go here.

Web app. IIS directory

Sep 8, 2011 at 7:22 AM


In a default Windows installation the IIS is placing the files on C-drive.


But I would like have the files placed on the D-drive, ex. d:\websites.

I have tried searching IIS setting to change default webfolder, with no luck or my searching skills have been degraded..

Any idea on how to define the webfolder in autospinstaller script or IIS?



Sep 9, 2011 at 6:38 AM


This option is detailed by MS here:

I do this all the time. I have an answer file with the following items:
iis_common = on
iis_www = on
iis_inetmgr = on
iis_asp = on
aspnet = on
complusnetwork = on

PathWWWRoot = D:\IIS-Data\www

Then install from the command line with: Sysocmgr.exe /i:C:\windows\inf\sysoc.inf /u:AnswerFileLocation

In the above example, this will default the install of the WwwRoot directory (and thus new websites created on IIS) to D:\IIS-Data\www\


By default, AutoSPInstaller installs the Web Server role for you (or more accurately, the SharePoint 2010 Pre-requisiste installer does this), but you could always do this ahead of time. I'm not sure if the prereq installer can be told to install Web Server role with a specific configuration. Seems like changing the "default" location after installation is a bit more difficult (modify the metabase.xml and perhaps some registry entries).

Sep 9, 2011 at 7:45 AM



Do it work with IIS 7.x???


Sep 9, 2011 at 2:10 PM

There apparently is no longer a way to pre-define the root location of IIS (beginning with Win 2008 or Win2008 R2). There are published ways to move the location once it's been set up, but that's outside the scope of AutoSPInstaller really. Plus the benefits these days are doubtful, some even view moving Inetpub as an outdated security practice.

More info:

However, moving the IIS logfiles is a very good idea; AutoSPInstaller now provides a means to specify the location of the logs and will can also enable NTFS compression on them. See changeset for details.