---
title: Running the server as a Microsoft Windows service
description: Register, run, deregister, and configure logging for the PingDirectoryProxy server as a Microsoft Windows service.
component: pingdirectory
version: 11.1
page_id: pingdirectory:pingdirectoryproxy_server_administration_guide:pd_proxy_run_server_as_ms_windows_service
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/pingdirectoryproxy_server_administration_guide/pd_proxy_run_server_as_ms_windows_service.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: July 15, 2024
page_aliases: ["pd_proxy_register_server_as_windows_service.adoc", "pd_proxy_run_multiple_service_instances.adoc", "pd_proxy_deregister_and_uninstall_services.adoc", "pd_proxy_configure_log_files_for_services.adoc"]
section_ids:
  registering-the-server-as-a-windows-service: Registering the server as a Windows service
  about-this-task: About this task
  steps: Steps
  running-multiple-service-instances: Running multiple service instances
  about-this-task-2: About this task
  steps-2: Steps
  deregistering-and-uninstalling-services: Deregistering and uninstalling services
  about-this-task-3: About this task
  steps-3: Steps
  configuring-log-files-for-services: Configuring log files for services
  about-this-task-4: About this task
  steps-4: Steps
---

# Running the server as a Microsoft Windows service

The server can run as a Windows service, which enables you to sign out of a machine without stopping the server.

## Registering the server as a Windows service

Register the server as a Windows service using the Windows command prompt.

### About this task

Perform the following steps to register the server as a service:

### Steps

1. Stop the server with `bin\stop-server`.

   You can't register a server while it's running.

2. To register the server as a service, from a Windows command prompt, run `bat\register-windows-service.bat`.

3. After registration, start the server from the Windows Services Control Panel or with the `bat\start-server.bat` command.

   |   |                                                                                                                                                                                                                     |
   | - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | Command-line arguments for the `start-server.bat` and `stop-server.bat` scripts aren't supported while the server is registered to run as a Windows service. Using a task to stop the server is also not supported. |

## Running multiple service instances

Only one instance of a particular service can run at one time.

### About this task

Services are distinguished by the `wrapper.name` property in the `<server-root>\config\wrapper-product.conf` file.

### Steps

1. To run additional service instances, change the `wrapper.name` property on each additional instance.

2. Add or change descriptions of the service in the `wrapper-product.conf` file.

## Deregistering and uninstalling services

To uninstall a service, you must first deregister it.

### About this task

While a server is registered as a service, it can't run as a non-service process or be uninstalled.

### Steps

1. To remove the service from the Windows registry, use the `bat\deregister-windows-service.bat` file.

2. To uninstall the server, run the `uninstall.bat` script.

## Configuring log files for services

### About this task

The log files are stored in `<server-root>\logs`, and file names begin with `windows-service-wrapper`. They are configured to rotate each time the wrapper starts or the file reaches its maximum size. Only the last three log files are retained.

### Steps

1. These configurations can be changed in the `<server-root>\config\wrapper.conf` file.
