Tailoring services for windows XP
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
Tailoring services for windows XP

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Windows XP General
Author Message
Bob
Guest





Posted: Thu May 19, 2005 8:26 am    Post subject: Tailoring services for windows XP Reply with quote

I am installing Windows XP Pro and automating the setup, I have found most
things in the registry, but the settings for this next step are eluding me.

Via the keyboard and mouse and GUI, I can start the "services" snap-in for
MMC and perform the following customisations
Right-click the "SNMP Service" and choose properties.
Select the Recovery tab
Set the "First failure" dropdownlist to "Restart the Service"
Set the "Second failure" dropdownlist to "Restart the Service"
Set the "Subsequent failure" dropdownlist to "Restart the Service"
Set the "Rest failure count" to "1" day
Set the "Restart service after" to "5" minutes

How can I automate these settings from a script/batch file?

Thanks

Bob
Back to top
Torgeir Bakken (MVP)
Guest





Posted: Thu May 19, 2005 4:26 pm    Post subject: Re: Tailoring services for windows XP Reply with quote

Bob wrote:

Quote:
I am installing Windows XP Pro and automating the setup, I have found most
things in the registry, but the settings for this next step are eluding me.

Via the keyboard and mouse and GUI, I can start the "services" snap-in for
MMC and perform the following customisations
Right-click the "SNMP Service" and choose properties.
Select the Recovery tab
Set the "First failure" dropdownlist to "Restart the Service"
Set the "Second failure" dropdownlist to "Restart the Service"
Set the "Subsequent failure" dropdownlist to "Restart the Service"
Set the "Rest failure count" to "1" day
Set the "Restart service after" to "5" minutes

How can I automate these settings from a script/batch file?
Hi,


SC.exe and it's Failure parameter maybe:

How do I configure service recovery on remote computers?
http://www.jsiinc.com/SUBM/tip6300/rh6385.htm

Note that the above is relevant not only for remote computers,
but for local computer as well.

Also note that the article above mentions that you can do this
Recovery configuration with a registry file as well.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
Back to top
Jetro
Guest





Posted: Thu May 19, 2005 4:26 pm    Post subject: Re: Tailoring services for windows XP Reply with quote

Apply changes in FailureActions value - either merge the .reg file or script
it.
Back to top
Bob
Guest





Posted: Fri May 20, 2005 12:26 am    Post subject: Re: Tailoring services for windows XP Reply with quote

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:%2324dcCIXFHA.828@TK2MSFTNGP10.phx.gbl...
Quote:
Bob wrote:

I am installing Windows XP Pro and automating the setup, I have found
most things in the registry, but the settings for this next step are
eluding me.

Via the keyboard and mouse and GUI, I can start the "services" snap-in
for MMC and perform the following customisations
Right-click the "SNMP Service" and choose properties.
Select the Recovery tab
Set the "First failure" dropdownlist to "Restart the Service"
Set the "Second failure" dropdownlist to "Restart the Service"
Set the "Subsequent failure" dropdownlist to "Restart the Service"
Set the "Rest failure count" to "1" day
Set the "Restart service after" to "5" minutes

How can I automate these settings from a script/batch file?
Hi,

SC.exe and it's Failure parameter maybe:

How do I configure service recovery on remote computers?
http://www.jsiinc.com/SUBM/tip6300/rh6385.htm

Note that the above is relevant not only for remote computers,
but for local computer as well.

Also note that the article above mentions that you can do this
Recovery configuration with a registry file as well.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Thanks Torgeir,
The SC.exe command does just what I needed
Bob
Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Windows XP General All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB