---
title: Configuring PingAccess to run as a Windows service from the command line
description: To configure PingAccess to run as a Windows service from the command line:
component: pingaccess
version: 9.0
page_id: pingaccess:installing_and_uninstalling_pingaccess:pa_configuring_pa_to_run_as_a_windows_service_from_the_command_line
canonical_url: https://docs.pingidentity.com/pingaccess/9.1/installing_and_uninstalling_pingaccess/pa_configuring_pa_to_run_as_a_windows_service_from_the_command_line.html
llms_txt: https://docs.pingidentity.com/pingaccess/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: May 8, 2024
superseded_by: https://docs.pingidentity.com/pingaccess/9.1/installing_and_uninstalling_pingaccess/pa_configuring_pa_to_run_as_a_windows_service_from_the_command_line.html
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result
---

# Configuring PingAccess to run as a Windows service from the command line

## About this task

To configure PingAccess to run as a Windows service from the command line:

## Steps

1. Go to the `<PA_HOME>\sbin\windows` directory and run the `install-service.bat` file.

2. To set the PingAccess service to start automatically, run `sc config PingAccess start= auto`.

## Result

The service starts immediately and restarts automatically on reboot.
