mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 01:51:04 +01:00 
			
		
		
		
	Adding Powershell commands to Windows instructions (#1299)
Co-authored-by: Kristoffer Dalby <kristoffer@dalby.cc>
This commit is contained in:
		
							parent
							
								
									ceeef40cdf
								
							
						
					
					
						commit
						036ff1cbb9
					
				@ -11,8 +11,17 @@ To make the Windows client behave as expected and to run well with `headscale`,
 | 
				
			|||||||
- `HKLM:\SOFTWARE\Tailscale IPN\UnattendedMode` must be set to `always` as a `string` type, to allow Tailscale to run properly in the background
 | 
					- `HKLM:\SOFTWARE\Tailscale IPN\UnattendedMode` must be set to `always` as a `string` type, to allow Tailscale to run properly in the background
 | 
				
			||||||
- `HKLM:\SOFTWARE\Tailscale IPN\LoginURL` must be set to `<YOUR HEADSCALE URL>` as a `string` type, to ensure Tailscale contacts the correct control server.
 | 
					- `HKLM:\SOFTWARE\Tailscale IPN\LoginURL` must be set to `<YOUR HEADSCALE URL>` as a `string` type, to ensure Tailscale contacts the correct control server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					You can set these using the Windows Registry Editor:
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Or via the following Powershell commands (right click Powershell icon and select "Run as administrator"):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					New-ItemProperty -Path 'HKLM:\Software\Tailscale IPN' -Name UnattendedMode -PropertyType String -Value always
 | 
				
			||||||
 | 
					New-ItemProperty -Path 'HKLM:\Software\Tailscale IPN' -Name LoginURL -PropertyType String -Value https://YOUR-HEADSCALE-URL
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The Tailscale Windows client has been observed to reset its configuration on logout/reboot and these two keys [resolves that issue](https://github.com/tailscale/tailscale/issues/2798).
 | 
					The Tailscale Windows client has been observed to reset its configuration on logout/reboot and these two keys [resolves that issue](https://github.com/tailscale/tailscale/issues/2798).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For a guide on how to edit registry keys, [check out Computer Hope](https://www.computerhope.com/issues/ch001348.htm).
 | 
					For a guide on how to edit registry keys, [check out Computer Hope](https://www.computerhope.com/issues/ch001348.htm).
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,7 @@
 | 
				
			|||||||
        clicking the icon in the system tray
 | 
					        clicking the icon in the system tray
 | 
				
			||||||
      </li>
 | 
					      </li>
 | 
				
			||||||
    </ol>
 | 
					    </ol>
 | 
				
			||||||
    <p>Or</p>
 | 
					    <p>Or using REG:</p>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
      Open command prompt with Administrator rights. Issue the following
 | 
					      Open command prompt with Administrator rights. Issue the following
 | 
				
			||||||
      commands to add the required registry entries:
 | 
					      commands to add the required registry entries:
 | 
				
			||||||
@ -83,7 +83,16 @@
 | 
				
			|||||||
    <code>REG ADD "HKLM\Software\Tailscale IPN" /v UnattendedMode /t REG_SZ /d always
 | 
					    <code>REG ADD "HKLM\Software\Tailscale IPN" /v UnattendedMode /t REG_SZ /d always
 | 
				
			||||||
      REG ADD "HKLM\Software\Tailscale IPN" /v LoginURL /t REG_SZ /d "{{.URL}}"</code>
 | 
					      REG ADD "HKLM\Software\Tailscale IPN" /v LoginURL /t REG_SZ /d "{{.URL}}"</code>
 | 
				
			||||||
  </pre>
 | 
					  </pre>
 | 
				
			||||||
    <p>Restart Tailscale and log in.</p>
 | 
					    <p>Or using Powershell</p>
 | 
				
			||||||
 | 
					    <p>
 | 
				
			||||||
 | 
					      Open Powershell with Administrator rights. Issue the following commands to
 | 
				
			||||||
 | 
					      add the required registry entries:
 | 
				
			||||||
 | 
					    </p>
 | 
				
			||||||
 | 
					    <pre>
 | 
				
			||||||
 | 
					    <code>New-ItemProperty -Path 'HKLM:\Software\Tailscale IPN' -Name UnattendedMode -PropertyType String -Value always
 | 
				
			||||||
 | 
					      New-ItemProperty -Path 'HKLM:\Software\Tailscale IPN' -Name LoginURL -PropertyType String -Value "{{.URL}}"</code>
 | 
				
			||||||
 | 
					  </pre>
 | 
				
			||||||
 | 
					    <p>Finally, restart Tailscale and log in.</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <p></p>
 | 
					    <p></p>
 | 
				
			||||||
  </body>
 | 
					  </body>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user