@minmaxat If your goal is to just run Insync without the need of being logged in, you could try using the task scheduler for that.
I'm doing the following on a Windows 10 VM which is running all the time unattended, but automatically restarting every week to apply updates (it normally wouldn't start syncing after the restart). I assume that it works on Windows Server as well:
- In Insync preferences, disable the following:
- "Start Insync when computer starts"
- "Show pop-up notifications"
- Run task scheduler: taskschd.msc
- "Create Task..."
- In Tab "General":
- Name: e.g., "Insync"
- Select "Run whether user is logged on or not" (+ current user needs to be selected for which Insync is configured)
- "Configure for: Windows 10" (don't know how that looks like in Windows Server)
- In tab "Triggers" select "New..."
- "Begin the task: At startup"
- "Delay task for: 1 minute"
- In tab "Actions" select "New..."
- "Action: Start a program"
- "Program/script: C:\Users...\AppData\Roaming\Insync\App\Insync.exe"
- In tab "Settings"
- Deselect "Stop the task if it runs longer than:"
The downside is of course that the GUI is not accessible anymore even when logged in (you would need to kill the process and start Insync manually in order to e.g. change the configuration). But that would be the same when running Insync as a service.