william_roe
9 years agoSuper Contributor
Stopping and Starting Application Pool (IIS)
In order to restore our SQL Server Database via script I need to be able to stop and start a specific Application Pool. This article (https://support.smartbear.com/viewarticle/9044/) shows how stop / start services in their entirety. However, there is no need to stop IIS entirly -- only individual Application Pools. How can I start / start an individual Application Pool within IIS?
Latest IIS versions have appcmd.exe command line utility. It allows to perform different actions over IIS.
What you need is described in this MSDN article: https://technet.microsoft.com/en-us/library/cc732742(v=ws.10).aspx