Powershell Script to Monitor Application Pool Status for SharePoint

PowerShell script to monitor the status of the application pool for SharePoint. The script can be scheduled in the task scheduler. This script can be run remote. The account executing this script must have access to the SharePoint servers.

This script gets input from the text file ServerList.txt (This text file should contain the list of SharePoint servers on which you are going to monitor the app pool status). This text file should be placed under the same folder or location where the AppPoolStatus.ps1 script is placed.

Edit the AppPoolStatus.ps1 file to enter the "from" email address, "to" email address and SMTP server details.