Skip to content

Instantly share code, notes, and snippets.

@sihugh
Created July 24, 2013 10:42
Show Gist options
  • Save sihugh/6069562 to your computer and use it in GitHub Desktop.
Save sihugh/6069562 to your computer and use it in GitHub Desktop.
$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