Wednesday, December 22, 2010

PowerShell | Change Application Pool State

$appPool = get-wmiobject -namespace "root\MicrosoftIISv2" -class "IIsApplicationPool" | where-object {$_.Name -eq "W3SVC/AppPools/MY_APP_POOL"}

$appPool.Stop()

No comments:

Post a Comment