Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Service Recovery Options

Reply
 
Old 09-10-2008   #1 (permalink)
Bart Perrier


 
 

Service Recovery Options

We are considering configuring the Recovery Options for a service in the
event of a failure and for the Third Recovery Option, we have discussed
launching a vbScript to send an email.

Although the script to send the email is straight forward, I would like to
make it generic enough to be able to apply it to any service without
modifications. The pertinent information for the script would be

Server Name
Service Name

Is there a value I can poll on the fly that will provide me with the Service
which failed or some way to identify which service failed without hardcoding
it in the script? (Hardcoding it is not an unreasonable option but, if I can
grab it on the fly, then the script will be more flexible).

Thanks.

Bart



My System SpecsSystem Spec
Old 09-10-2008   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: Service Recovery Options


"Bart Perrier" <bart_perrier@xxxxxx> wrote in message
news:%23kE$Yv0EJHA.4336@xxxxxx
Quote:

> We are considering configuring the Recovery Options for a service in the
> event of a failure and for the Third Recovery Option, we have discussed
> launching a vbScript to send an email.
>
> Although the script to send the email is straight forward, I would like to
> make it generic enough to be able to apply it to any service without
> modifications. The pertinent information for the script would be
>
> Server Name
> Service Name
>
> Is there a value I can poll on the fly that will provide me with the
> Service which failed or some way to identify which service failed without
> hardcoding it in the script? (Hardcoding it is not an unreasonable option
> but, if I can grab it on the fly, then the script will be more flexible).
>
> Thanks.
>
> Bart
You would have to scan the Event Logger for events generated by failed
services.


My System SpecsSystem Spec
Old 09-11-2008   #3 (permalink)
Bart Perrier


 
 

Re: Service Recovery Options


"Pegasus (MVP)" <I.can@xxxxxx> wrote in message
news:Ouz5kX4EJHA.5104@xxxxxx
Quote:

>
> "Bart Perrier" <bart_perrier@xxxxxx> wrote in message
> news:%23kE$Yv0EJHA.4336@xxxxxx
Quote:

>> We are considering configuring the Recovery Options for a service in the
>> event of a failure and for the Third Recovery Option, we have discussed
>> launching a vbScript to send an email.
>>
>> Although the script to send the email is straight forward, I would like
>> to make it generic enough to be able to apply it to any service without
>> modifications. The pertinent information for the script would be
>>
>> Server Name
>> Service Name
>>
>> Is there a value I can poll on the fly that will provide me with the
>> Service which failed or some way to identify which service failed without
>> hardcoding it in the script? (Hardcoding it is not an unreasonable option
>> but, if I can grab it on the fly, then the script will be more flexible).
>>
>> Thanks.
>>
>> Bart
>
> You would have to scan the Event Logger for events generated by failed
> services.
>
Thanks for the reply, Pegasus.

I did find out that the Recovery Option doesn't actually monitor the
service, yet the event viewer for failed services. This gives me some
potential.

Thanks again for the reply.

Bart


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Boots into recovery options Vista General
System Recovery Options Not Available Vista installation & setup
Re: Recovery Options for Vista SP1 Vista performance & maintenance
Data Recovery Options Vista General
Preinstalled recovery options Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46