Created
July 20, 2018 17:30
-
-
Save ssougnez/b6bd4c44b91d133886e928d189494b0d to your computer and use it in GitHub Desktop.
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
Function StopWebApplicationPool { | |
Param([string]$name) | |
$appPool = Get-Item $("IIS:\AppPools\{0}" -f $name) | |
if ($appPool.State -eq "Started") { | |
$appPool.Stop() | |
} | |
Success | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment