Skip to content

Instantly share code, notes, and snippets.

@mikaelweave
Last active November 9, 2017 16:50
Show Gist options
  • Save mikaelweave/4f3db7f2678072495e7e to your computer and use it in GitHub Desktop.
Save mikaelweave/4f3db7f2678072495e7e to your computer and use it in GitHub Desktop.
Recycle all application pools on a server
Write-Host ""
Write-Host "Starting App Pool Recycle...." -ForegroundColor Magenta
& $env:windir\system32\inetsrv\appcmd list apppools /state:Started /xml | & $env:windir\system32\inetsrv\appcmd recycle apppools /in
Write-Host "Recycle Complete" -ForegroundColor Magenta
Write-Host ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment