---
title: windows-service
description: windows-service — register DS as a Windows Service
component: pingds
version: 8.1
page_id: pingds:tools-reference:windows-service
canonical_url: https://docs.pingidentity.com/pingds/8.1/tools-reference/windows-service.html
section_ids:
  synopsis: Synopsis
  windows-service-description: Description
  windows-service-options: Service options
  general_options: General options
  windows-service-exit-codes: Exit codes
---

# windows-service

`windows-service` — register DS as a Windows Service

## Synopsis

`windows-service options`

## Description

This utility can be used to run the server as a Windows Service.

## Service options

* `-c, --cleanupServiceserviceName`

  Disable the service and clean up the windows registry information associated with the provided service name

* `-d, --disableService`

  Disable the server as a Windows service and stop the server

* `-e, --enableService`

  Enable the server as a Windows service

* `-s, --serviceState`

  Provide information about the state of the server as a Windows service

## General options

* `-V, --version`

  Display version information

* `-?, -H, --help`

  Display usage information

## Exit codes

* 0

  The command completed successfully.

* \> 0

  An error occurred.
