Re: Trying to run script to enable and restart service
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 21 Feb 2007 07:41:57 +1100
"AJ" <AJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B408BE0B-1028-499E-91E6-450D118A0CEF@xxxxxxxxxxxxxxxx
I'm trying to run a .bat file which will automatically re-enable adisabled
Windows spooler service and then restart the service. I've got thefollowing
script readyto
sc config spooler start= auto
net start spooler
When the Windows spooler service changes to disabled, i tried putting this
script under the recovery option in the services console - (when service
fails, run this script), but it does not run... i've tried running the bat
file manually and the service is correctly restarted, etc, i just need to
find out how to get it to run automatically when the service sets itself
disabled.
I think you have the wrong idea. A disabled service is not the
same as a failed service, hence your script will never be triggered!
What makes you think that the service sets itself to "disabled"?
.
- Prev by Date: Re: User unable to log into machine, automatically logs out of machine during login process
- Next by Date: Re: win2k sp3: access mapped drive from service
- Previous by thread: Re: Erratic boot
- Next by thread: Re: Trying to run script to enable and restart service
- Index(es):
Relevant Pages
|