Diagnostic Log Collection Tool (`sentinel-diag.ps1`)

Edit Article

Generate a complete, sanitized diagnostic ZIP bundle to share with Sentinel support.

Sentinel Operations Team
3 min read
Updated August 28, 2026
v3.2

When 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-Null
5 
6# 1. Gather Service Status
7Get-Service SentinelAgent | Format-List * | Out-File "$tempFolder\service_status.txt"
8 
9# 2. Gather Configuration (sanitized)
10Copy-Item "C:\Program Files\Sentinel\config\sentinel-agent.toml" "$tempFolder\config.txt"
11 
12# 3. Gather Recent Logs
13Copy-Item "C:\ProgramData\Sentinel\logs\*.log" "$tempFolder\"
14 
15# 4. Network Connectivity Test
16Test-NetConnection -ComputerName "endpoint.yourcompany.com" -Port 443 | Out-File "$tempFolder\network_test.txt"
17 
18# 5. Compress into ZIP
19Compress-Archive -Path "$tempFolder\*" -DestinationPath $outputZip -Force
20Remove-Item -Path $tempFolder -Recurse -Force
21 
22Write-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.