A Windows PC

Add a Windows PC to your Ducter so tasks run in your Windows folders, with Git for Windows and one PowerShell line. It starts when you log in.

On this page
  1. Before you add it
  2. Add it
  3. It starts when you log in
  4. It updates itself
  5. The other way: WSL
  6. What isn’t there yet
  7. If it doesn’t connect

Your Ducter can use a Windows PC for tasks. Tasks then run natively on Windows, in your Windows folders and with your Windows tools, and you say where as usual: “run it on the thinkpad”. The PC only does tasks: it can’t read your conversation or decide anything for you.

Ducter itself still runs on a Mac (Apple silicon or Intel, macOS 13 or later) or a Linux server. A Windows PC is a computer that does tasks for it.

Before you add it

You don’t need to be an administrator, and nothing needs an open port: the PC connects out to your Ducter.

Add it

  1. In Ducter, open Your devices, choose Add a device, then For Ducter to do tasks on.
  2. Choose A Windows PC.
  3. Ducter shows one PowerShell line. On that PC, open PowerShell (not necessarily as administrator), paste the line and press Enter. It starts with & ([scriptblock]::Create((irm https://ducter.ai/install.ps1))) because that form runs without changing Windows’ execution policy.
  4. It downloads Ducter, checks its SHA-256, puts it in %LOCALAPPDATA%\Programs\Ducter, adds that folder to your own PATH, joins your Ducter with the code, and starts it for you. Pasting it twice is fine: the same version is kept and a join that still works is not spent again.
  5. Ducter shows Waiting for it to connect… until it arrives, then {name} is here. Rename it there if you like.

It starts when you log in

Ducter registers a per-user Windows task that starts at your logon and restarts if it stops. It runs as you, with no administrator rights and no console window.

If Windows refuses the task, Ducter says so, uses your per-user Run key instead and starts the worker right away (no need to sign out); the worker then restarts itself if it stops. Either way, the same commands see it, and status says whether it is running now:

ducter service status --worker
ducter service uninstall --worker

The log is %USERPROFILE%\.ducter\worker.log; its first line says the version, the process id, the exact arguments, the working folder and whether Windows’ own environment variables are there, and its last line says the exit code — so a worker that stops is never silent. If the task is registered but the worker isn’t up, the installer says so with the task’s own last result and points at this log.

It updates itself

Like a Linux computer, the Windows PC updates Ducter on its own. In Settings › Updates and about (or its card under Your devices), Update downloads the Windows build, checks it against the release’s checksums, and restarts the worker on the new version; the card says what it is doing and Back, now on 0.2.0 when it is done. Update all takes it too, and Update automatically updates it at night when nothing is running.

Windows can’t replace a program that is running, so Ducter keeps the old one beside the new one until the new version has started. If it doesn’t start, the old one comes back and the card says Didn’t update; back on 0.1.108 — open it to see why.

A PC still on a version from before this one (0.1.108 or earlier) can’t update itself yet: its row in Ducter on each computer says so and shows the one line to run there. Run it once in PowerShell, and from then on the PC updates like any other.

The other way: WSL

A worker inside WSL2 works with today’s Linux line, as long as systemd is on in WSL. It is slower on files under C:\, and WSL sleeps when nothing is running in it. Native Windows is the better choice for Windows folders and tools.

What isn’t there yet

The web client shows the keys in Windows’ own words: Ctrl, Alt, Enter, and Ctrl+Shift+1–4 for partners.

If it doesn’t connect

The usual reasons are the same as for any computer: the code expired (choose New code and paste the new line), or the PC can’t reach your Ducter. On that PC, check with:

curl.exe -sS -m 10 https://ducter.example.com/health

If Git for Windows is missing, the installer stops before doing anything and prints the winget line above. For everything else, see Add a computer.