From ad2dcf3b141d0bd0ef0659f17cc641421336c008 Mon Sep 17 00:00:00 2001 From: uhlwoogi Date: Thu, 7 May 2026 01:09:54 +0000 Subject: [PATCH] Add Headscale registry keys before service restart Co-Authored-By: Claude Sonnet 4.6 --- ESA-TailScale.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ESA-TailScale.ps1 b/ESA-TailScale.ps1 index c8ca5ee..4100c1b 100644 --- a/ESA-TailScale.ps1 +++ b/ESA-TailScale.ps1 @@ -51,6 +51,17 @@ foreach ($folder in @($localApp, $roamingApp)) { } } +# Set Headscale registry configuration +$registryPath = 'HKLM:\Software\Tailscale IPN' +New-Item -Path $registryPath -Force | Out-Null +New-ItemProperty -Path $registryPath -Name UnattendedMode -PropertyType String -Value "user-decides" -Force | Out-Null +New-ItemProperty -Path $registryPath -Name AllowIncomingConnections -PropertyType String -Value "never" -Force | Out-Null +New-ItemProperty -Path $registryPath -Name AdminConsole -PropertyType String -Value "hide" -Force | Out-Null +New-ItemProperty -Path $registryPath -Name NetworkDevices -PropertyType String -Value "hide" -Force | Out-Null +New-ItemProperty -Path $registryPath -Name TestMenu -PropertyType String -Value "hide" -Force | Out-Null +New-ItemProperty -Path $registryPath -Name LoginURL -PropertyType String -Value "http://headscale.estudiogroup.com:8080" -Force | Out-Null +Write-Host "Registry keys created successfully." + # Restart service if exists if ($service) { Start-Service Tailscale