# Bootstrap launcher for FoxNetworkBV Windows Activate repository. # This script is intended to be executed via: # irm https://getactivated.foxnetwork.be | iex $ErrorActionPreference = 'Stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $scriptUrl = 'https://raw.githubusercontent.com/foxnetworkBV/windows-activate/main/MAS/All-In-One-Version-KL/MAS_AIO.cmd' $tempFile = Join-Path $env:TEMP 'MAS_AIO.cmd' Write-Host '[FoxNetworkBV] Downloading launcher...' -ForegroundColor Cyan Invoke-WebRequest -Uri $scriptUrl -OutFile $tempFile -UseBasicParsing if (-not (Test-Path $tempFile)) { throw 'Download failed: MAS_AIO.cmd was not saved to temp folder.' } # MAS batch scripts expect Windows CRLF and a trailing blank line. $content = [System.IO.File]::ReadAllText($tempFile) $content = [System.Text.RegularExpressions.Regex]::Replace($content, "\r?\n", "`r`n") if (-not $content.EndsWith("`r`n`r`n")) { $content = $content.TrimEnd("`r", "`n") + "`r`n`r`n" } [System.IO.File]::WriteAllText($tempFile, $content, [System.Text.Encoding]::ASCII) Write-Host '[FoxNetworkBV] Starting launcher as administrator...' -ForegroundColor Green Start-Process -FilePath $tempFile -Verb RunAs