This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $PublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKh8QnHldxC7TdgHbEmScNQOXcCbljbSLyqpLDuU9j8y 11306048+Divine-Shadow@users.noreply.github.com" | |
| $TailscaleCidr = "100.64.0.0/10" | |
| $CapabilityName = "OpenSSH.Server~~~~0.0.1.0" | |
| $SshdPath = Join-Path $env:WINDIR "System32\OpenSSH\sshd.exe" | |
| function Require-Admin { | |
| $identity = [Security.Principal.WindowsIdentity]::GetCurrent() | |
| $principal = [Security.Principal.WindowsPrincipal]::new($identity) | |
| if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| throw "run PowerShell as Administrator" |