Guest User

Untitled

a guest
Jul 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Function StopWebApplicationPool {
  2. Param([string]$name)
  3.  
  4. $appPool = Get-Item $("IIS:\AppPools\{0}" -f $name)
  5.  
  6. if ($appPool.State -eq "Started") {
  7. $appPool.Stop()
  8. }
  9.  
  10. Success
  11. }
Add Comment
Please, Sign In to add comment