# Installation Guide

## Starting EMSRV as a Windows NT/2000 service

The following steps cover how to install EMSRV as a Windows NT/2000 service. See Troubleshooting EMSRV as a Windows NT/2000 service for a listing of common problems and solutions when running EMSRV as a Windows NT/2000 service.

1. Change directory to the directory containing the EMSRV executable (as specified previously in Setting up EMSRV for Windows NT/2000).
2. Enter `emsrv -install <parameters>`. The optional `<parameters>` are EMSRV parameters such as `-u <user name>`, `-p <password>`, and so on. (For a list of available parameters, see EMSRV Startup options.) These parameters are fixed and will be used every time EMSRV is started as a service.

   Ensure that `-install` is the first parameter. This installs EMSRV as a service in the registry and copies the necessary DLLs to the system directory. If there is an older version of EMSRV already installed, it removes the older version and installs the new version.

3. Start EMSRV as a service by using one of the following methods:
   1. Starting EMSRV as a service using the Service control panel
      1. Open the Control Panel and double-click the Services control panel.
         Note:
           On Windows 2000, you access the Services control panel via the Administrative Tools icon within the Control Panel.
      2. Select the EMSRV Service in the Services control panel.
      3. Select HW Profiles and verify that a configuration is enabled. Enable one if necessary.
      4. Select Start and EMSRV will start as a service. (Selecting Stop will stop the service and close all connections.)
   2. Starting EMSRV as a service using the Service Controller utility `sc.exe`
      1. Enter `sc start EMSRV -u <user name> -p <password>` at a DOS command prompt.
      2. Query the service status by entering `sc query EMSRV`.

      To stop the service, enter `sc stop EMSRV`.

      Note:
        `sc.exe` is available with the Windows NT/2000 Resource Kit.
   3. Starting EMSRV automatically at Windows NT/2000 startup:
      1. Go to the Services control panel.
      2. Select EMSRV and press the Startup button.
      3. Select Automatic for the startup type.

To remove the EMSRV Service from the registry, enter `EMSRV -remove` at a DOS command prompt. Alternatively, you can remove it by entering `sc delete EMSRV`.

The `-remove` option will stop the service if it is running as well as delete it from the registry.

[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]