# Next Technologies Log Collector # Run: irm x.nextx.au | iex Write-Host "" Write-Host " Next Technologies Log Collector" -ForegroundColor Cyan Write-Host " ===============================" -ForegroundColor Cyan Write-Host "" Write-Host " Select log type to collect:" -ForegroundColor White Write-Host "" Write-Host " [1] Autopilot / Intune" -ForegroundColor Yellow Write-Host " [2] SCCM / ConfigMgr" -ForegroundColor Yellow Write-Host "" do { $choice = Read-Host " Enter 1 or 2" } while ($choice -notin '1','2') $logType = if ($choice -eq '1') { 'Autopilot' } else { 'SCCM' } Write-Host "" Write-Host " Briefly describe the problem (or press Enter to skip):" -ForegroundColor White $problemDesc = Read-Host " " Write-Host "" Write-Host " Downloading log collector..." -ForegroundColor Gray $scriptPath = Join-Path $env:TEMP 'Send-DiagLogs.ps1' Invoke-RestMethod -Uri 'https://stlogcollectornxt.blob.core.windows.net/scripts/Send-DiagLogs.ps1' -OutFile $scriptPath $params = @{ LogType = $logType } if ($problemDesc) { $params['ProblemDescription'] = $problemDesc } & $scriptPath @params