CIVITAS

Support diagnostics pack

Run the block below in PowerShell to create a civitas_support_<timestamp> folder + zip for email support.

Privacy reminder: redact secrets before sending.

PowerShell (copy/paste)

$ts = Get-Date -Format "yyyyMMdd_HHmmss"
$outDir = Join-Path $PWD "civitas_support_$ts"
New-Item -ItemType Directory -Path $outDir -Force | Out-Null

$sysFile = Join-Path $outDir "system.txt"
"timestamp_utc: $(Get-Date -AsUTC -Format o)" | Out-File -FilePath $sysFile -Encoding utf8
"windows_caption: $((Get-CimInstance Win32_OperatingSystem).Caption)" | Add-Content -Path $sysFile
"windows_version: $((Get-CimInstance Win32_OperatingSystem).Version)" | Add-Content -Path $sysFile
"windows_build: $((Get-CimInstance Win32_OperatingSystem).BuildNumber)" | Add-Content -Path $sysFile
"powershell_version: $($PSVersionTable.PSVersion)" | Add-Content -Path $sysFile
$PSVersionTable | Out-String | Add-Content -Path $sysFile

if (Test-Path ".\pack.zip") {
  Copy-Item ".\pack.zip" -Destination (Join-Path $outDir "pack.zip") -Force
  Get-FileHash ".\pack.zip" -Algorithm SHA256 | Format-List * | Out-File -FilePath (Join-Path $outDir "pack.sha256.txt") -Encoding utf8
}

if (Test-Path ".\verify.json") {
  Copy-Item ".\verify.json" -Destination (Join-Path $outDir "verify.json") -Force
}

if (Test-Path ".\self_audit.log") {
  Copy-Item ".\self_audit.log" -Destination (Join-Path $outDir "self_audit.log") -Force
}

@"
what_i_did:
expected:
got:
command:
timestamp_utc: $(Get-Date -AsUTC -Format o)
"@ | Out-File -FilePath (Join-Path $outDir "report.txt") -Encoding utf8

Compress-Archive -Path "$outDir\*" -DestinationPath "$outDir.zip" -Force
Write-Host "Support pack created: $outDir.zip"