# Jimber Debug Collector - Bootstrap # Usage: irm "https://debug.jimber.io/" | iex # Project: https://github.com/jimber/debug-collector $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' # Check admin privileges $isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) if (-not $isAdmin) { Write-Host "`n[ERROR] Administrator privileges required!" -ForegroundColor Red Write-Host "Please right-click PowerShell and select 'Run as Administrator'`n" -ForegroundColor Yellow Start-Sleep 3 exit 1 } Write-Host "`n========================================" -ForegroundColor Magenta Write-Host " Jimber Debug Collector" -ForegroundColor Magenta Write-Host "========================================" -ForegroundColor Magenta Write-Host "[→] Downloading diagnostic script..." -ForegroundColor Cyan try { # Download the collector script $scriptUrl = 'https://debug.jimber.io/collector.ps1' $scriptContent = Invoke-RestMethod -Uri $scriptUrl -UseBasicParsing -TimeoutSec 30 # Validate content if ($scriptContent -notmatch 'Jimber Debug') { throw "Downloaded content appears invalid" } Write-Host "[✓] Script downloaded successfully" -ForegroundColor Green Write-Host "[→] Executing diagnostic collection...`n" -ForegroundColor Cyan # Execute Invoke-Expression $scriptContent } catch { Write-Host "`n[ERROR] Failed to download or execute script" -ForegroundColor Red Write-Host "Error: $_" -ForegroundColor Yellow Write-Host "`nTroubleshooting:" -ForegroundColor Cyan Write-Host " - Check internet connection" -ForegroundColor White Write-Host " - Verify server is accessible: https://debug.jimber.io/" -ForegroundColor White Write-Host " - Try pinging the server: ping debug.jimber.io`n" -ForegroundColor White exit 1 }