Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.