Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 433 Bytes
#
# IIS AppPool Process Killer
#
# Kills the selected IIS AppPool worker processes
#
# Kristofer Källsbo 2017
#
Import-Module ServerManager
Add-WindowsFeature Web-Scripting-Tools
Import-Module WebAdministration
dir IIS:\AppPools\ | Out-GridView -Title 'Select apppool to restart' -PassThru | Set-Variable -Name selectedAppPool
foreach($worker in $selectedAppPool.workerProcesses.Collection)
{
Stop-Process $worker.processId
}