Für den Support die relevanten Logs eines Clients als ZIP einsammeln.
Befehl (PowerShell als Administrator):
$zip = "$env:TEMP\browserdesk-logs.zip"
$tmp = Join-Path $env:TEMP 'browserdesk-logs'
Remove-Item $tmp -Recurse -Force -ErrorAction SilentlyContinue
foreach ($q in @("$env:ProgramData\BrowserDesk", "$env:LOCALAPPDATA\BrowserDesk")) {
if (Test-Path $q) {
Get-ChildItem $q -Recurse -File -Include *.log, *.txt, health.json -ErrorAction SilentlyContinue | ForEach-Object {
$ziel = Join-Path $tmp $_.FullName.Substring(3)
New-Item -ItemType Directory -Force (Split-Path $ziel) | Out-Null
Copy-Item $_.FullName $ziel
}
}
}
Compress-Archive -Path "$tmp\*" -DestinationPath $zip -Force
explorer.exe "/select,$zip"
Sammelt nur Protokolle und Textangaben ein (
*.log, *.txt, health.json) — u. a. bd-service.log, watchdog.log und die Netzwerk-Diagnose. Geräte-Identität, Gerätekennwort, Zugangs-Token und Schlüssel bleiben bewusst draußen; schicken Sie nie den ganzen Ordner %ProgramData%\BrowserDesk.