2

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?

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
Adam
  • 21
  • 2

1 Answers1

1

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"
ngoozeff
  • 554
  • 5
  • 4