Created
July 24, 2013 10:42
-
-
Save sihugh/6069562 to your computer and use it in GitHub Desktop.
Recycle IIS 6 app pool - from http://stackoverflow.com/questions/198623/how-do-i-recycle-an-iis-apppool-with-powershell
This file contains 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
$appPoolName = $args[0] | |
$appPool = get-wmiobject -namespace "root\MicrosoftIISv2" -class "IIsApplicationPool" | Where-Object {$_.Name -eq "W3SVC/APPPOOLS/$appPoolName"} | |
$appPool.Recycle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment