This tool allows you to easily advertise routes from your Windows device to your Tailscale tailnet. It provides a simple console-based interface to select which network connection you want to share with other devices in your tailnet.
- Windows 10 or 11
- Tailscale installed and configured
- PowerShell 5.1 or later (included with Windows 10/11)
- Administrator privileges
- Automatically detects all active Ethernet and WiFi connections
- Displays detailed information about each connection (IP address, subnet, gateway)
- Option to advertise your device as an exit node (allows other devices to use your internet connection)
- Support for Tailscale auth keys for automated/unattended setup
- Clear, step-by-step console interface
There are three ways to run the script:
Run the following command in an administrator PowerShell window:
irm tailscale.whitelabelav.co.nz | iexThis will download and run the script directly from the web in a single command.
- Download both
TailscaleRouteAdvertiser.ps1andRunTailscaleRouteAdvertiser.bat - Double-click the
RunTailscaleRouteAdvertiser.batfile - When prompted by User Account Control, click "Yes" to allow the script to run with administrator privileges
- Follow the on-screen prompts in the PowerShell window that appears
- Download the
TailscaleRouteAdvertiser.ps1script - Right-click the script and select "Run with PowerShell as administrator"
- Follow the on-screen prompts
Once the script is running:
- Select a network connection by entering its number
- Choose whether to advertise as an exit node (y/n)
- Confirm your selections
- The script will execute the Tailscale command and display the results
- Route advertisements may require approval from your tailnet administrator
- The script automatically checks if Tailscale is installed
- For security reasons, the script must be run with administrator privileges
If you encounter issues when running the script:
- Tailscale not found: Make sure Tailscale is installed and in your PATH
- Permission issues: Verify you're running the script as administrator
- No connections shown: Check that you have active network connections
- Command fails: The script will now provide detailed error output and troubleshooting tips
Common Tailscale-specific issues:
- Not logged in: Run
tailscale statusto verify you're logged into Tailscale - Permission issues: Ensure your Tailscale account has permissions to advertise routes
- Subnet routing disabled: Check if subnet routing is enabled in your tailnet admin console
- Exit node restrictions: Some tailnets restrict who can advertise exit nodes
The script includes improved error handling that will display:
- Detailed command output
- Error messages from Tailscale
- Exit codes
- Specific troubleshooting suggestions
The script uses PowerShell's networking cmdlets to identify physical network connections, then uses the Tailscale CLI to advertise the selected route to your tailnet. The console-based interface makes it easy to select which connection to share while keeping the tool lightweight and simple.