« Previous Next »

Answered Thread: Application Pool reset

Last post 11-10-2009 11:03 PM by imperalix. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 11-10-2009, 7:48 PM

    Application Pool reset

     I'm trying to script setting the application pool recycle times.  I used the following command.  I have noticed that it appends the time and does not override it.  Is there a way to override and not append?  Thanks.

     

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='Default'].recycling.periodicRestart.schedule.[value='01:05:00']" /commit:apphost

  • 11-10-2009, 7:56 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: Application Pool reset

    The following will clear any entries from the schedule, you can run this before adding the new entry.

    %windir%\system32\inetsrv\appcmd.exe clear config -section:system.applicationHost/applicationPools /"[name='Default'].recycling.periodicRestart.schedule

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 11-10-2009, 11:03 PM In reply to

    Re: Application Pool reset

     Thanks, I will give that a try!

Page 1 of 1 (3 items)
Microsoft Communities