Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Recycle All App Pools

Posted on January 24, 2020 By David Kittell
Write-Host "App Pool Recycling Started...." -ForegroundColor Green 
& $env:windir\system32\inetsrv\appcmd list apppools /state:Started /xml | & $env:windir\system32\inetsrv\appcmd recycle apppools /in
Write-Host "App Pool Recycling Completed" -ForegroundColor Green
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell Windows Windows Server

Post navigation

Previous post
Next post

Related Posts

PowerShell – Create System Path

Posted on March 4, 2016March 4, 2016

Possibly the easiest manual way is in Windows 10 and Windows 2012 R2 (likely previous versions too but don’t have them handy while writing this): From the Desktop, right click on the Windows icon (Start Menu) in the bottom left of the screen Click on “System” Click the “Advanced system…

Read More

MSSQL Table Backup Script

Posted on August 20, 2015October 26, 2015

This is a quick way to backup table structure and data, this will go out to the system table and query all tables then provide a script to recreate the tables. SELECT ‘create table [’ + so.NAME + ‘] (‘ + o.list + ‘)’ + CASE WHEN tc.Constraint_Name IS NULL…

Read More

PowerShell – Random Password Generator

Posted on March 25, 2016January 31, 2017

Similar to C# – Random Password Generator but this will work with PowerShell scripts. This script has a minimum of four (4) characters but you can change that to whatever you would like. .\RandomPasswordGenerator.ps1 <Password Length> <# .SYNOPSIS New-RandomPassword generates a random password .DESCRIPTION New-RandomPassword generates a random password that…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes