Add Headscale registry keys before service restart
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f26052308c
commit
ad2dcf3b14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user