JSI Tip 9041. How can I increase the time that the Service Control Manager waits before terminating a starting service?
February 9, 2005
When a service fails to send a 'service started' message to the Service Control Manager within the time-out period, the Service Control Manager terminates the service and logs Event ID 7000 to the System event log.
NOTE: The default timeout period is normally 30,000 milliseconds.
I have scripted SvcTimeOut.bat to alter the time that the Service Control Manager wait for each starting service.
The syntax for using SvcTimeOut.bat is:
call SvcTimeOut TimeOutMilliseconds
Where TimeOutMilliseconds is the number of milliseconds that the Service Control Manager should wait.
NOTE: You must shutdown and restart your computer for the new setting to become effective.
NOTE: SvcTimeOut.bat uses REG.EXE, built into Windows XP, Windows Server 2003, and later, or installed from the Windows 2000 Support Tools.
SvcTimeOut.bat contains:
@echo offif {%1}=={} @echo Syntax: SvcTimeOut TimeOutMilliseconds&goto :EOF@echo REG ADD "HKLMSYSTEMCurrentControlSetControl" /V ServicesPipeTimeout /T REG_DWORD /F /D %1REG ADD "HKLMSYSTEMCurrentControlSetControl" /V ServicesPipeTimeout /T REG_DWORD /F /D %1
About the Author
You May Also Like