How to recycle all application pools at once on the server RRS feed

  • Question

  • Any side effects is there in below code for recycling application pools.

    The below code written in power-shell script and it will working properly but there is any future side effects please help me.


    Write-Host "App Pool Recycling Started...." -ForegroundColor Magenta 
    & $env:windir\system32\inetsrv\appcmd list apppools /state:Started /xml | & $env:windir\system32\inetsrv\appcmd recycle apppools /in
    Write-Host "App Pool Recycling Completed" -ForegroundColor Magenta

    Monday, April 17, 2017 7:46 AM