# CDN entry for https://get.zerotouch.ai - downloads/runs the signed runner script. # Prefer Authenticode-signed ZTOobeBootstrap.exe in production; this PS1 is the bootstrap shim. # No #Requires here: this file is invoked via irm|iex (Requires only works on .ps1 files). $ErrorActionPreference = 'Stop' $RunnerUrl = if ($env:ZT_OOBE_RUNNER_URL) { $env:ZT_OOBE_RUNNER_URL } else { 'https://get.zerotouch.ai/ZTOobeBootstrap-20261123e.ps1' } $Temp = Join-Path $env:TEMP ('ZTOobeBootstrap-{0}.ps1' -f [guid]::NewGuid().ToString('N')) try { Invoke-WebRequest -Uri $RunnerUrl -OutFile $Temp -UseBasicParsing # ponytail: production must verify Authenticode / SHA-256 pinned in CDN config before invoke & $Temp @args } finally { if (Test-Path -LiteralPath $Temp) { Remove-Item -LiteralPath $Temp -Force -ErrorAction SilentlyContinue } }