Add Headscale registry keys before service restart

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
uhlwoogi
2026-05-07 01:09:54 +00:00
co-authored by Claude Sonnet 4.6
parent f26052308c
commit ad2dcf3b14
+11
View File
@@ -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