Riavviare il servizio web con uno script WSH
Ritorniamo sull'argomento amministrazione presentando uno script utile per effettuare il riavvio del solo servizio web.
E' sufficiente schedulare questo script WSH una volta al giorno, chiamandolo ad esempio restart.vbs, o impostare un alert dal system monitor per far scaricare il server web e prevenire eventuali blocchi.
on error resume next ' STOP WshShell.Run "NET STOP W3SVC /Y" , 2 , true ' START WshShell.Run "NET START W3SVC /Y" , 2 , true Set WshShell=Nothing
Per maggiori informazioni su WSH si veda
http://www.aspitalia.com/articoli/wsh/introduzione.asp







