If you have ever had a server that is has difficulty with the iisreset command, this may help. In my testing it works on everything from Windows 2000 to 2008R2. Your mileage may vary. We use this to automate resets on a Continue reading Batch script to restart IIS services. Can be modified for other purposes.