Computing.Net > Forums > Windows Server 2003 > auto service restart

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

auto service restart

Reply to Message Icon

Name: pap0007
Date: November 29, 2004 at 13:55:30 Pacific
OS: windows xp
CPU/Ram: athlon1900+, 512DDR
Comment:

hello

is there a way to reset a service automatically? like a batch file or a scheduled task?

i know there is a program to reset IIS automatically called iisreset, but is there a way to reset any service??

thanks for any help

Kevin



Sponsored Link
Ads by Google

Response Number 1
Name: dannyboy
Date: December 2, 2004 at 08:42:07 Pacific
Reply:

Hi Kevin

Couldn't you just create a batch file using the net stop/net start commands and service name (in quotes)?

e.g.

net stop "print spooler"
net start "print spooler"

Works for me ;o)


0

Response Number 2
Name: pap0007
Date: December 2, 2004 at 13:32:54 Pacific
Reply:

thanks dannyboy- that was quite helpful.

let me ask another question- do you know how to add a scheduled task through a batch file?

thanks again

Kevin



0

Response Number 3
Name: dannyboy
Date: December 3, 2004 at 08:54:47 Pacific
Reply:

Sure, just go to Scheduled Tasks in Control Panel, Add Scheduled Task, then just go through the wizard.

You have to point it to your batch file (I usually save them to the root of c:\ so I can find them easily) then just schedule it - you can schedule it as a one-off, or for specific days, etc.

good luck


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: auto service restart

Crystal service won't auto start www.computing.net/answers/windows-2003/crystal-service-wont-auto-start/6238.html

Blue Death screen Service Pack 1 www.computing.net/answers/windows-2003/blue-death-screen-service-pack-1/4219.html

force a IIS restart www.computing.net/answers/windows-2003/force-a-iis-restart/3084.html