Last active
November 9, 2017 16:50
-
-
Save mikaelweave/4f3db7f2678072495e7e to your computer and use it in GitHub Desktop.
Recycle all application pools on a server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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