:: This gets the Status of all IIS services. It reads a list of servers from 'ServerList.txt' file. :: To work properly, this needs to be ran on the same LAN or External network!!! :: echo off cls echo ** This get the Status of IIS services from a list of servers ** SetLocal EnableDelayedExpansion echo. FOR /F "Tokens=*" %%L IN (ServerList.txt) DO ( SET ServerName= SET ServerName=%%L echo. :: Gets Status of all IIS services echo ** IIS Service Status for !ServerName! ** IISRESET /STATUS !ServerName! echo. :: Pause command echo ** Waiting 5 seconds for !ServerName! ** PING 127.0.0.1 -n 5 -w 5000 >NUL echo. ) echo. echo ** Done Processing, check Status ** Pause :end
Comments