General discussion

Locked

automating iis smtp service

By abwsalma ·
when emailing a large email list using the iis smtp service, is there a way to schedule stopping/starting the service automatically every e.g. 2 hrs or so?
Thank you.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

automating iis smtp service

by JordanA In reply to automating iis smtp servi ...

use the net stop and net start commands in a batch file. Then use the scheduler to schedule running the batch file every two hours.

--
REM Name: smtpbounce.bat
REM Description: stops and starts the SMTP
REM service on the machine it is run on
REM Usage: require wait.exe from reskit.
REM schedule using the scheduler service

net stop smtpsvc
wait 30
net start smtpsvc

---


Jordan

Collapse -

by abwsalma In reply to automating iis smtp servi ...

Poster rated this answer.

Collapse -

by abwsalma In reply to automating iis smtp servi ...

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums