---
title: Installing the Scheduler Windows service
related:
  - https://docs.kentico.com/k11/custom-development/miscellaneous-custom-development-tasks/scheduling-custom-tasks.md
  - https://docs.kentico.com/k11/external-utilities/kentico-installation-manager.md
  - https://docs.kentico.com/k11/external-utilities/kentico-service-manager.md
  - https://docs.kentico.com/k11/configuring-kentico/health-monitoring/installing-the-health-monitoring-windows-service.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Kentico EMS required**
>
> Features described on this page require the **Kentico EMS** license.

Kentico provides a dedicated Windows service for executing scheduled tasks. You can use the service to execute tasks externally instead of the application itself (typically for resource-consuming tasks). Executing scheduled tasks using the Windows service can **optimize the performance** of your application.

## Installing the Scheduler Windows service using Kentico Service Manager

The easiest way to install the Scheduler Windows service is to use the Kentico Service Manager utility:

1. Launch the [Kentico Service Manager](https://docs.kentico.com/k11/external-utilities/kentico-service-manager.md) utility from the Kentico program files group in the Windows Start menu.
   - You can also launch the **KSM** utility from [Kentico Installation Manager](https://docs.kentico.com/k11/external-utilities/kentico-installation-manager.md) using the **Services** button.
2. Choose the Kentico instance where you want to install the service (select the CMS folder).
3. Select the **Kentico Scheduler** service.
4. Click **Install**.

   ![Installing the Kentico scheduler service](https://docs.kentico.com/docsassets/k11/installing-the-scheduler-windows-service/Scheduler_Service_Install.png "Installing the Kentico scheduler service")
5. Click **Start** to start the service after it is installed.

You have installed the **Kentico Scheduler** service, which is now running and ready to be used.

You can uninstall the service at any time by clicking **Uninstall** in the Kentico Service Manager utility.

## Installing the Scheduler Windows service from the command line

To install the Windows service from the command line, you need to use **Installer Tool** (InstallUtil.exe), which is a native part of the .NET Framework:

1. Open the Windows command line (type _cmd_ in the Start menu search box)
2. Navigate to the .NET folder containing _InstallUtil.exe_ (e.g. _c:\Windows\Microsoft.NET\Framework64\v4.0.30319\\_).
3. Execute _InstallUtil.exe_ from the Windows command line with the following parameters:

   ```powershell

   InstallUtil.exe /webpath="C:\inetpub\wwwroot\Kentico\CMS" "c:\inetpub\wwwroot\Kentico\CMS\bin\SchedulerService.exe" /LogToConsole=true /i

   ```

   The following table describes the used parameters:

   | **/webpath**         | Path to the CMS folder of the Kentico instance for which you want to install the service.                                                                 |
   | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **second parameter** | Path to the _SchedulerService.exe_ file in the _Bin_ folder inside the application (typically _c:\inetpub\wwwroot\Kentico\CMS\bin\SchedulerService.exe_). |
   | **/LogToConsole**    | Optional parameter that determines whether the installation progress is logged to the console.                                                            |
   | **/i**               | If this parameter is used, the Installer Tool performs installation of the Windows service.                                                               |
4. Open the **Services** management console (type _services.msc_ into the Start menu search box).
5. Select the **Kentico Scheduler ()** service in the list.
6. Click the **Start Service** button on the top toolbar.

   ![](https://docs.kentico.com/docsassets/k11/installing-the-scheduler-windows-service/image.png)

## Configuring database permissions for services

By default, Kentico services run under the **Local System** (_NT AUTHORITY\System_) account. If you experience problems with services not starting, the Local System account may not have sufficient permissions for your Kentico database.

Either grant sufficient permissions for the _NT AUTHORITY\SYSTEM_ login in your database (at least assign a schema with the _Connect_ permission), or use the Windows **Services** management console to change the Log On account of individual services to a different account with database access.

## Uninstalling the Scheduler Windows service from the command line

1. Open the Windows command line (type _cmd_ in the Start menu search box).
2. Navigate to the .NET folder containing _InstallUtil.exe_ (e.g. _c:\Windows\Microsoft.NET\Framework64\v4.0.30319\\_).
3. Execute _InstallUtil.exe_ from the Windows command line with the following parameters:

   ```powershell

   InstallUtil /webpath="C:\inetpub\wwwroot\Kentico\CMS" "c:\inetpub\wwwroot\Kentico\CMS\bin\SchedulerService.exe" /LogToConsole=true /u

   ```

After executing this command, the Scheduler Windows service for the Kentico instance specified by the **/webpath** parameter is uninstalled.
