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 am trying to setup recycling logging events, using the following:

 appcmd set config /section:applicationPools /[name=' AppPoolName '].recycling.logEventOnRecycle:time 

But I am getting this error:

Failed to process input: The parameter ''].recycling.logEventOnRecycle:time' mus t begin with a / or - (HRESULT=80070057).

I used this technet article but I cannot figure out where I went wrong.

Any ideas?

share|improve this question

In Powershell (note the quotes around the second parameter):

& appcmd set config /section:applicationPools "/[name='AppPool'].recycling.logEventOnRecycle:Time"

or if you want multiple types of events:

& appcmd set config /section:applicationPools "/[name='AppPool'].recycling.logEventOnRecycle:PrivateMemory, Time"

In cmd.exe, same examples as above:

appcmd set config /section:applicationPools /[name='AppPool'].recycling.logEventOnRecycle:Time

appcmd set config /section:applicationPools /[name='AppPool'].recycling.logEventOnRecycle:"PrivateMemory, Time"
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.