# Install as Windows service

**URL:** https://forum.duplicati.com/t/install-as-windows-service/10114
**Category:** Uncategorized
**Created:** [June 20, 2020, 9:55am UTC](https://forum.duplicati.com/t/install-as-windows-service/10114 "2020-06-20T09:55:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Teemoe](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/87869e/32.png) [@Teemoe](https://forum.duplicati.com/u/Teemoe)
#### Post date: [June 20, 2020, 9:55am UTC](https://forum.duplicati.com/t/install-as-windows-service/10114/1 "2020-06-20T09:55:26Z")

</div>

I want to install duplicati as windows service with Windows 10 2004.  
I have try to copy the appdata to the system appdata and try the command with admin priv.:  
“C:\Program Files\Duplicati 2\Duplicati.Service.exe” install  
The command promt write:  
Starting process C:\Program Files\Duplicati 2\Duplicati.Server.exe with cmd args “–ping-pong-keepalive=true” install  
and hang at this output.  
The Task-Manager show 2x Duplicati.service.exe and 1x duplicati.server.exe.

Deinstall and reinstall the latest version doesn’t resolve this.

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [June 21, 2020, 8:23pm UTC](https://forum.duplicati.com/t/install-as-windows-service/10114/2 "2020-06-21T20:23:51Z")

</div>

Welcome to the forum @Teemoe

> [@Teemoe](#):
>
> “C:\Program Files\Duplicati 2\Duplicati.Service.exe” install

[Duplicati.WindowsService.exe](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/) is the program you want. Name is similar. Function is very different.

[Migrating from User to Service install on Windows](https://forum.duplicati.com/t/migrating-from-user-to-service-install-on-windows/660) is a How-To about what you’ve been trying to do.

[Install Duplicati as a service](https://www.youtube.com/watch?v=fZ_ukxbEyG0) is a video tutorial on that process.

There are variations possible, and one I strongly suggest is to not use system appdata for Duplicati.  
Windows version updates wipe it out. Your databases go to Windows.old but only last for 10 days…

---

<div class="post-metadata">

### Author: ![Teemoe](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/87869e/32.png) [@Teemoe](https://forum.duplicati.com/u/Teemoe)
#### Post date: [June 23, 2020, 8:34am UTC](https://forum.duplicati.com/t/install-as-windows-service/10114/3 "2020-06-23T08:34:47Z")

</div>

_facepalm_ …

> [@ts678](#):
>
> and one I strongly suggest is to not use system appdata for Duplicati.  
> Windows version updates wipe it out. Your databases go to Windows.old but only last for 10 days…

Ah… good to know. So i installed the service and changed the service user to a “sys\_backup” user account. Thank you!

---

<div class="post-metadata">

### Author: ![tstritof](https://forum.duplicati.com/user_avatar/forum.duplicati.com/tstritof/32/7775_2.png) [@tstritof](https://forum.duplicati.com/u/tstritof)
#### Post date: [February 3, 2023, 10:04pm UTC](https://forum.duplicati.com/t/install-as-windows-service/10114/4 "2023-02-03T22:04:48Z")

</div>

I was struggling with windows service type installation since default option is to run Duplicati in user mode which means no VSS capability during backup.

Made some scripts to automate windows service install - check here [GitHub - schtritoff/duplicati-install-windows-service](https://github.com/schtritoff/duplicati-install-windows-service). Would be better to have something like this supported in default Duplicati Windows MSI installer, for example as a switch…
