3. At the command prompt, type the following and then press ENTER: cd %systemroot%\inetpub\adminscripts

4. At the command prompt, type the following and then press ENTER: csript adsutil.vbs set w3svc/AppPools/AppPoolName/EventName true

Replace AppPoolName with the name of the application pool and EventName with the name of the event for which you want to enable logging. For example, the following command enables logging of memory-based recycling events for the default AppPool: csript adsutil.vbs set w3svc/AppPools/DefaultAppPool /AppPoolRecyleMemory true