# Powershell alle App Pools recyclen
Write-Host “Das Recycling Startet….” -ForegroundColor Green
& $env:windir\system32\inetsrv\appcmd list apppools /state:Started /xml | & $env:windir\system32\inetsrv\appcmd recycle apppools /in
Write-Host “Das Recycling ist abgeschlossen” -ForegroundColor Green
# Powershell einen definierten App Pool recyclen
Restart-WebAppPool (Get-Website -Name “Default Web Site”).applicationPool
Start-Process C:\Windows\System32\inetsrv\appcmd.exe “recycle apppool /apppool.name:DefaultAppPool” -Verb RunAs
# CMD
appcmd recycle apppool /apppool.name:’DefaultAppPool’