Get Application Pools using PowerShell function

Getting Application Pools status remotely is relatively easy. Adding them into a data table and then sending it in html formatted report is more complex process. Today I would like to show how to do this by breaking apart one of my functions. In one of the previous articles I described how to get status of application pools and additionally reset IIS if needed – link. This time we just …

Recycle Web App Pool using PowerShell Function

Today we will go through process for creating PowerShell function which will recycle Web App Pool remotely. For those who are working with Web Applications this might be helpful. To recycle/restart single Web App Pool we can use one of the commands available in WebAdministration module – Restart-WebAppPool: First step which you have to do is adding your Web App Pools in param sections [ValidateSet(“.NET v2.0″,”.NET v2.0 Classic”,”.NET v4.5″,”.NET v4.5 …

How to check Web Application Pools status and restart IIS remotely on multiple servers?

During work in large scale ADFS environment there is often situation when you are forced to quickly restart IIS on multiple machines. Of course you won’t spend whole day doing this manually. In this article I would like to share one of my scripts which will help to determine the status of Web Application Pools and then restart IIS if needed. On the beginning of this script I added some …