Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got an IIS server that is running a bit low on diskspace on the C: drive; I've moved the W3SVC logs from c:\windows\system32\LogFiles to another drive, but there is also a big HTTPERR folder there that I'd like to move somewhere else. How do I do it?

share|improve this question
up vote 3 down vote accepted

Microsoft have details here but the summary is:

Go into the registry and amend HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters Create a String called ErrorLoggingDir and point that somewhere else. Don't include the HTTPERR path, as the HTTP service will create an HTTPERR subdirectory anyway.

Then you restart the HTTP service (net stop HTTP, net start HTTP) and then start any dependent services - eg W3SVC. The HTTP service (http.sys) does not appear in the services MMC, so you have to use a command line to start/stop it.

share|improve this answer

Here is some powershell code that will add the registry key:

$myRegKeyBase = "HKLM:\SYSTEM\CurrentControlSet\services\HTTP\Parameters" $myRegKeyName = "ErrorLoggingDir" $myRegKeyVal = "D:\inetpub\logs" # Create Key property if it doesn't already exist $myRC = New-ItemProperty $myRegKeyBase -Name $myRegKeyName -Value $myRegKeyVal -PropertyType String -ErrorAction SilentlyContinue # Update Key property to $iisLogFileDir if it already exists Set-ItemProperty $myRegKeyBase -Name $myRegKeyName -Value $myRegKeyVal -ErrorAction SilentlyContinue $myProperties = Get-ItemProperty $myRegKeyBase -ErrorAction SilentlyContinue Write-Host "regKeyPath: $($myRegKeyBase) regKeyName: $($myRegKeyName) value: $($myProperties.$myRegKeyName)"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.