C
Canice
Is it possible to use task scheduler to restart a windows
service on a daily basis?
service on a daily basis?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Canice said:Is it possible to use task scheduler to restart a windows
service on a daily basis?
-----Original Message-----
A batch file with the appropriate net commands should do it. For example
a batch file to stop and restart your IIS services might be:
::stop the services
net stop w3svc
net stop smtpsvc
net stop MSFtpsvc
net stop iisadmin
::start them back
net start w3svc
net start smtpsvc
net start MSFtpsvc
So you would put your stop/start commands in a batch file and then
schedule the batch file. If your service has any other services dependent
on it, you'll want to stop those first.
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org
Please post all follow-ups to the newsgroup only.
.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.