KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Set Startup Type of Service with Command Prompt
PRODUCT: 4D | VERSION: 18 | PLATFORM: Win
Published On: September 15, 2020

When registering a databse as a service on Windows, the startup type can be selected from the service properties.


However, the startup type can also be set with the Command Prompt. This is done with the following steps:

  1. Run Command Prompt as administrator (right-click, Run as administrator)

  2. Type in sc config "Service_Name" start=Startup_Type

"Service_Name" will need to be replaced with the service name and Startup_Type will need to be replaced with the desired startup type.

Ex). sc config "4DS servdb" start=auto

The available startup types and how to set them using Command Prompt are shown below:
  • Automatic : sc config "Service_Name" start=auto

  • Manual : sc config "Service_Name" start=demand

  • Automatic Delayed : sc config "Service_Name" start=delayed-auto