PC Review


Reply
Thread Tools Rate Thread

Automatically Restart a Service?

 
 
Curt
Guest
Posts: n/a
 
      14th Sep 2005
Is there a good freeware app to have a Windows service periodically
restart, e.g., once a day at a specific time?
 
Reply With Quote
 
 
 
 
Adam Piggott
Guest
Posts: n/a
 
      14th Sep 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Curt wrote:
> Is there a good freeware app to have a Windows service periodically
> restart, e.g., once a day at a specific time?


Put the following into a batch file:

@echo off
net stop servicename
net start servicename

And then at the command line (or using the Scheduled tasks Control Panel):

AT 09:00 /every:Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday <batch file leafname>

- --
Adam Piggott, Proprietor, Proactive Services (Computing).
http://www.proactiveservices.co.uk/

Please replace dot invalid with dot uk to email me.
Apply personally for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDKIIm7uRVdtPsXDkRAk4MAJ4t4SWzfwlet1STQfpbL/o/ytugCACgj2Rk
koxQwJvP09H4hK8XIW7Cwec=
=98iG
-----END PGP SIGNATURE-----
 
Reply With Quote
 
3c273
Guest
Posts: n/a
 
      14th Sep 2005
You can get psservice.exe, part of pstools, from www.sysinternals.com and
use the task scheduler to run the appropriate command. It also works on
remote machines. Type "psservice /?" at a command prompt to see the options.
I have all of the pstools in my system32 folder so that I don't have to
specify the path to the executable.
Louis

"Curt" <(E-Mail Removed)> wrote in message
news:yo_Ve.14798$sx2.14331@fed1read02...
> Is there a good freeware app to have a Windows service periodically
> restart, e.g., once a day at a specific time?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE automatically restart =?Utf-8?B?VHV5ZW4gVHJhbg==?= Windows XP Internet Explorer 0 8th Apr 2006 05:33 PM
Restart Button on Taskbar does not automatically restart after shut down Scorpio Windows XP Help 1 4th Nov 2004 02:49 PM
Automatically Restart Kostas Windows XP Security 2 3rd Feb 2004 07:25 AM
Restart automatically nick Windows XP General 0 14th Sep 2003 03:21 PM
Require restart of ftp service in order to remotely access ftp service Teggy P Veerapen Windows XP Networking 0 28th Aug 2003 12:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:25 PM.