Windows equivalent to /apple #128

Closed
opened 2025-12-29 01:23:37 +01:00 by adam · 1 comment
Owner

Originally created by @kradalby on GitHub (Feb 20, 2022).

Originally assigned to: @e-zk on GitHub.

Create a Windows equivalent to the /apple endpoint with:

Pre-filled in with headscale url.

We can probably move the content of all of these from apple.go to platform.go or the likes.

The keys needed to be set is listed in the ansible example.

If anyone have examples of the regedit files and commands, that would be helpful, please post it in the comments.

Originally created by @kradalby on GitHub (Feb 20, 2022). Originally assigned to: @e-zk on GitHub. Create a Windows equivalent to the /apple endpoint with: - A downloadable reg file with the two keys needed: https://www.laptopmag.com/uk/articles/create-reg-file-for-registry-hacks - Command examples: https://www.windowscentral.com/how-edit-registry-using-command-prompt-windows-10 - (bonus) Ansible: https://github.com/kradalby/plays/blob/master/roles/win_tailscale/tasks/main.yaml#L8 Pre-filled in with headscale url. We can probably move the content of all of these from apple.go to platform.go or the likes. The keys needed to be set is listed in the ansible example. If anyone have examples of the regedit files and commands, that would be helpful, please post it in the comments.
adam added the enhancementgood first issue labels 2025-12-29 01:23:37 +01:00
adam closed this issue 2025-12-29 01:23:38 +01:00
Author
Owner

@e-zk commented on GitHub (Mar 4, 2022):

I've started to work on this. I believe the text/template for the .reg file should look as follows;

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Tailscale IPN]
"UnattendedMode"="always"
"LoginURL"="{{.Url}}"

This sets the two appropriate registry keys for the self-hosted control server to work.
In the html we serve on /windows I'll also add the steps to take for adding the registry keys manually via the command-line.

@e-zk commented on GitHub (Mar 4, 2022): I've started to work on this. I believe the `text/template` for the `.reg` file should look as follows; ``` Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Tailscale IPN] "UnattendedMode"="always" "LoginURL"="{{.Url}}" ``` This sets the [two appropriate registry keys](https://github.com/juanfont/headscale/blob/main/docs/windows-client.md#:~:text=two%20registry%20keys%20must%20be%20set) for the self-hosted control server to work. In the html we serve on `/windows` I'll also add the steps to take for adding the registry keys manually via the command-line.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#128