Docstoc

auto Print Spooler service restart

Document Sample
auto Print Spooler service restart Powered By Docstoc
					auto Print Spooler service restart


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



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

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)



                                   Response Number 2
Name: pap0007
Date: December 2, 2004 at 13:32:54 Pacific
Reply:                                                                        +1
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




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

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

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:6
posted:11/20/2010
language:English
pages:2