JSI Tip 9041. How can I increase the time that the Service Control Manager waits before terminating a starting service?

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 off
if \{%1\}==\{\} @echo Syntax: SvcTimeOut TimeOutMilliseconds&goto :EOF
@echo REG ADD "HKLM\SYSTEM\CurrentControlSet\Control" /V ServicesPipeTimeout /T REG_DWORD /F /D %1
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control" /V ServicesPipeTimeout /T REG_DWORD /F /D %1

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.