Batch Script to restart IIS remotely
Posted on 2009-04-03
I'm looking for a way to write a batch or vbscript to restart iis remotely. This script is inserted into my backup command script that runs batch or vbscript type commands. The problem this computer doesn't have iis installed on it so I can't jsut run iisrest/timeout:300 computername. Is there a way to have a script that connnects to this server and runs the iisreset command? Currently I runnign a batch script natievly on the server with iis but would like to include this after my backup command since thi sis a requirement after I shutdown the db it runs on for the backup. When the db comes back online iss needs to be reset. Including this in the backup script with make managing things easier.