Skip to content

Instantly share code, notes, and snippets.

@SoulOfUniverse
Created July 13, 2021 19:15
Show Gist options
  • Save SoulOfUniverse/95f7b11b598e6f963cfbdc383a479c1a to your computer and use it in GitHub Desktop.
Save SoulOfUniverse/95f7b11b598e6f963cfbdc383a479c1a to your computer and use it in GitHub Desktop.
Start IIS Application Pool using WebAdministration
# Load IIS module:
Import-Module WebAdministration
# Get AppPool Name
$appPoolName = $OctopusParameters['appPoolName']
Write-Output "Starting IIS app pool $appPoolName"
Start-WebAppPool $appPoolName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment