Windows PowerShell scripts that will keep installations of Tailscale updated daily. Tailscale is an excellent peer-to-peer style mesh VPN based on the Wireguard protocol. See https://tailscale.com
PoSH one-liner to download and install the latest release with defaults
try{Set-ExecutionPolicy Unrestricted -Scope:LocalMachine -Confirm:0}catch{}; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $f=(irm 'https://api.github.com/repos/needscoffee/tailscale-updater-windows/releases/latest').assets; $f|%{irm $_.url -h:@{Accept="application/octet-stream"} -o:$_.name}; $f.name|%{Unblock-File $_}; saps 'powershell.exe' -ArgumentList:"-ExecutionPolicy Bypass -Command `"& {cd $((pwd).Path);.\Install-Updater.ps1}`"" -Wait -Verb:RunAs; $f.name|ri;
PoSH one-liner to download this and install with defaults
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force -Confirm:$False; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.4.0/Install-Updater.ps1 -OutFile Install-Updater.ps1; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.4.0/Tailscale-Updater-Windows.ps1 -OutFile Tailscale-Updater-Windows.ps1; Start-Process 'powershell.exe' -ArgumentList "-ExecutionPolicy Bypass -Command `"& {Set-Location $((Get-Location).Path);.\Install-Updater.ps1}`"" -Wait -Verb RunAs; Remove-Item Install-Updater.ps1,Tailscale-Updater-Windows.ps1;
Fix for silo maintenace and new method for new release detection.
PoSH one-liner to download this and install with defaults
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force -Confirm:$False; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.3.0/Install-Updater.ps1 -OutFile Install-Updater.ps1; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.3.0/Tailscale-Updater-Windows.ps1 -OutFile Tailscale-Updater-Windows.ps1; Start-Process 'powershell.exe' -ArgumentList "-ExecutionPolicy Bypass -Command `"& {Set-Location $((Get-Location).Path);.\Install-Updater.ps1}`"" -Wait -Verb RunAs; Remove-Item Install-Updater.ps1,Tailscale-Updater-Windows.ps1;
This release adds silo maintenance. Now the silos will only keep the two most recent releases to keep space usage low.
PoSH one-liner to download this and install with defaults
Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.2.0/Install-Updater.ps1 -OutFile Install-Updater.ps1; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.2.0/Tailscale-Updater-Windows.ps1 -OutFile Tailscale-Updater-Windows.ps1; Start-Process 'powershell.exe' -ArgumentList "-ExecutionPolicy Bypass -Command `"& {Set-Location $((Get-Location).Path);.\Install-Updater.ps1}`"" -Wait -Verb RunAs; Remove-Item Install-Updater.ps1,Tailscale-Updater-Windows.ps1;
Minor tweaks but mostly improvements to the installer schedule and installer script
PoSH one-liner to download this and install with defaults
Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.1.4/Install-Updater.ps1 -OutFile Install-Updater.ps1; Invoke-WebRequest -uri https://github.com/NeedsCoffee/Tailscale-Updater-Windows/releases/download/v0.1.4/Tailscale-Updater-Windows.ps1 -OutFile Tailscale-Updater-Windows.ps1; Start-Process 'powershell.exe' -ArgumentList "-ExecutionPolicy Bypass -Command `"& {Set-Location $((Get-Location).Path);.\Install-Updater.ps1}`"" -Wait -Verb RunAs; Remove-Item Install-Updater.ps1,Tailscale-Updater-Windows.ps1;
Fix to allow systems not enforcing TLS 1.2 connection security to still connect and get updates
Extended installer script to allow use of -unstable switch and it now copies files to new folder call Tailscale-updater in ProgramData, then installs the task so it runs from there. Path can be modified with the -path parameter
Fix stupid copy/paste issue that broke the script on some devices
First release with core functionality
Supports PowerShell 5.1 & 7.x, and includes a simple install to setup a scheduled task