# Backup not triggered when no user is logged in (Win 11)

**URL:** <https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038>\
**Category:** Support\
**Created:** [January 30, 2025, 8:14am UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038 "2025-01-30T08:14:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![macSOSfr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@macSOSfr](https://forum.duplicati.com/u/macSOSfr)\
**Post date:** [January 30, 2025, 8:14am UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/1 "2025-01-30T08:14:30Z")

</div>

Hi!  
_Context: Virtual Win 11 Pro with duplicati-2.1.0.3\_beta\_2025-01-22-win-x64-gui.msi_

For security reason, this virtual hosted machine is started up and running with no user logged in with the VNC console, and RDP access to it, is disabled.  
As a matter of interest, this machine runs a business client-server PostgreSQL app which works OK when no user is logged in. I guess it’s doable to have Duplicati working like that.

How to have scheduled backups run when no user is logged in?

---

<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:** [January 30, 2025, 12:46pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/2 "2025-01-30T12:46:44Z")

</div>

> [@macSOSfr](#):
>
> app which works OK when no user is logged in

Possibly running a Windows service then. You could look in Task Manager or Services for that.

> [@macSOSfr](#):
>
> How to have scheduled backups run when no user is logged in?

[WindowsService](https://docs.duplicati.com/duplicati-programs/service) however default DB location is in SYSTEM profile which a Windows version update may move to C:\Windows.old (and keep 10 days). You should use an alternate folder.

[Database location on Windows](https://docs.duplicati.com/detailed-descriptions/the-server-database#database-location-on-windows) discusses, and [Database location](https://docs.duplicati.com/detailed-descriptions/the-server-database#database-location) shows ways to set location.

---

<div class="post-metadata">

**Author:** ![macSOSfr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@macSOSfr](https://forum.duplicati.com/u/macSOSfr)\
**Post date:** [January 30, 2025, 4:26pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/3 "2025-01-30T16:26:27Z")

</div>

@ts678  
Thank you.  
I read the documentation. However, I need further help as I’m not a Win specialist.  
I currently run _duplicati-2.1.0.3\_beta\_2025-01-22-win-x64-gui.msi_  
Correct me if I’m wrong, I should follow these steps:

- Stop Duplicati, I guess by killing the Duplicati.GUI-TrayIcon process
- Move the C:\Users\ _username_ \AppData\Local\Duplicati folder to, for instance, C:\

Then the documentation talks about: “Change the startup parameters (environment variables, commandline arguments, or preload.json)”. How to do this?

Then, I guess I’d have to run this command: Duplicati.WindowsService.exe INSTALL

---

<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:** [January 30, 2025, 4:51pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/4 "2025-01-30T16:51:58Z")

</div>

[Migrating from User to Service install on Windows](https://forum.duplicati.com/t/migrating-from-user-to-service-install-on-windows/660/46) is a more step-by-step guide, however it’s somewhat old, and doesn’t yet worry about [Duplicati Access Password](https://docs.duplicati.com/detailed-descriptions/duplicati-access-password) setup. Ideally, you’ve already set up a password which you can use for direct URL, e.g. `http://localhost:8200`.

> [@macSOSfr](#):
>
> I guess by killing the Duplicati.GUI-TrayIcon process

Kills aren’t the nice way, but are usually safe when idle.

Nice is right-click and Quit, if you can find TrayIcon, probably in lower right of screen, but probably in the expansion area unless you moved it (so click the up-arrow/caret icon to the left of the clock).

> [@macSOSfr](#):
>
> How to do this?

Probably the easiest path (of several) is above that:

> It is possible to pick a different location for the database with the commandline option `--server-datafolder=<path>`

and it means commandline as opposed to GUI, so you would put above option into the step

> The registration of the Windows Service is done by executing the WindowsService binary:

```plaintext
Duplicati.WindowsService.exe INSTALL [arguments ...]

```

> The arguments can be any of the arguments supported by the Server and will be passed on to the Server on startup.

so instead of plain install as above, you’d customize it, e.g. with a `--server-datafolder` option.

[How to Start, Stop, and Restart Services in Windows 10 & 11](https://www.majorgeeks.com/content/page/start_stop_restart_services.html) may come in handy at some point.

If you also need a TrayIcon attached to the Windows service, it’s possible, but more steps to run.

---

<div class="post-metadata">

**Author:** ![macSOSfr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@macSOSfr](https://forum.duplicati.com/u/macSOSfr)\
**Post date:** [January 30, 2025, 5:56pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/5 "2025-01-30T17:56:15Z")

</div>

Thank you.

So, I gracefully Quit the application from the Tray.  
I then moved the C:\Users[your user name]\AppData\Local\Duplicati folder, into C:\ProgramData\

I then ran an Admin Terminal with the command:

`"C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe" INSTALL --server-datafolder=C:\ProgramData\Duplicati`

but I got the following error

 ![Capture d’écran 2025-01-30 à 18.40.26](https://forum.duplicati.com/uploads/default/original/2X/7/7408189dd2d22e0be9f43f1d94932fb9baea954b.png)

---

<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:** [January 30, 2025, 6:08pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/6 "2025-01-30T18:08:48Z")

</div>

> [@macSOSfr](#):
>
> I got the following error

Try putting an ampersand (&) at the left of the line. That’s the PowerShell [Call operator](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-5.1#call-operator-).  
Command Prompt (the old simple less fancy way to do command line) didn’t need that.

---

<div class="post-metadata">

**Author:** ![macSOSfr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/7bcc69/32.png) [@macSOSfr](https://forum.duplicati.com/u/macSOSfr)\
**Post date:** [January 30, 2025, 6:22pm UTC](https://forum.duplicati.com/t/backup-not-triggered-when-no-user-is-logged-in-win-11/20038/7 "2025-01-30T18:22:54Z")

</div>

@ts678  
Thank you.  
That worked. And I can confirm I have remote access from the Console when no user is logged in on the client machine.

 ![Capture d’écran 2025-01-30 à 19.19.23](https://forum.duplicati.com/uploads/default/original/2X/0/07859209f7f394c25ea4f926e25812b693706810.png)
