Windows operating systems

Windows: Manually creating and configuring a Windows service

If you configured the server by using the configuration wizard, a Windows service was created automatically. If a service was not created automatically, you must create it.

Before you begin

To complete this procedure, you must log on with a user ID that is in the Administrators group.


To create a Windows service and configure the startup options for the service, complete the following step:

Open a command window and enter the sc.exe create command:
sc.exe create server_name binPath= "path_to_server -k instance_name"
start= start_type obj= account_name password= password 
Specifies the name of the server service.
Specifies the path to the dsmsvc.exe executable file, including the file name. This path is the default path:

C:\Program Files\Tivoli\TSM\server

Specifies the name of the DB2® instance, which is also the name of the server instance, for example, Server1.
Specifies the method for starting the service. To automatically start the service, enter auto. If you specify the auto option, the service starts automatically at system startup and restarts automatically whenever the system is restarted. To manually start the service, enter demand.
Specifies the user ID for the account under which the service runs. For example, the account name might be Administrator. This parameter is optional. If it is not specified, the Local System account is used.
Specifies the password for the account_name user account.
Tip: When you enter the command, ensure that you enter a space after each equal sign (=).


The server starts as a Windows service.