Diagnostic Log Collection Tool (`sentinel-diag.ps1`)
Edit ArticleGenerate a complete, sanitized diagnostic ZIP bundle to share with Sentinel support.
Sentinel Operations Team
3 min read
Updated August 28, 2026
v3.2When opening a support ticket, run this simple 1-click PowerShell script on the affected client machine. It packages the last 7 days of logs, service status, network ping tests, and sanitized config into `C:\Windows\Temp\sentinel-diag.zip`.
sentinel-diag.ps1
1# Sentinel 1-Click Diagnostics Collector (Run as Admin)2$outputZip = "$env:TEMP\sentinel-diag-$(Get-Date -Format 'yyyyMMdd-HHmmss').zip"3$tempFolder = "$env:TEMP\sentinel-diag-tmp"4New-Item -Path $tempFolder -ItemType Directory -Force | Out-Null56# 1. Gather Service Status7Get-Service SentinelAgent | Format-List * | Out-File "$tempFolder\service_status.txt"89# 2. Gather Configuration (sanitized)10Copy-Item "C:\Program Files\Sentinel\config\sentinel-agent.toml" "$tempFolder\config.txt"1112# 3. Gather Recent Logs13Copy-Item "C:\ProgramData\Sentinel\logs\*.log" "$tempFolder\"1415# 4. Network Connectivity Test16Test-NetConnection -ComputerName "endpoint.yourcompany.com" -Port 443 | Out-File "$tempFolder\network_test.txt"1718# 5. Compress into ZIP19Compress-Archive -Path "$tempFolder\*" -DestinationPath $outputZip -Force20Remove-Item -Path $tempFolder -Recurse -Force2122Write-Host "Diagnostic bundle created successfully at: $outputZip" -ForegroundColor Green
Tags:#Diagnostics#Log Bundle#Support Tool
Was this documentation page helpful?
Your technician feedback helps our team continuously improve Sentinel guides.

