Windows PowerShell Pwsh ISE_copy_paste
Copy into Windows PowerShell ISE window
1 # PowerShell
2
3 # Check free space
4 Get-PSDrive C
5 # 108 GB
6
7 # Create folder
8 New-Item -ItemType Directory -Path C:\Temp\dumps -Force
9
10 # Find the gw2e.exe PID
11 $p = Get-Process gw2e
12 $p | Select-Object Id, ProcessName, StartTime, Path
13 # Id ProcessName StartTime Path
14 # -- ----------- --------- ----
15 # 7748 gw2e 5/24/2026 1:04:04 AM D:\gw2eType_App\gw2ePkg.Code.2026.04.26.1-NA-full-1\gw2e.exe
16
17 # Capture full dump
18 $ts = Get-Date -Format yyyyMMdd_HHmmss
19 procdump64.exe -accepteula -ma $p.Id C:\Temp\dumps\gw2e_$($env:COMPUTERNAME)_$($p.Id)_$ts.dmp
20 # or - no procdump use rundll32 + comsvcs.dll
21 rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump $($p.Id) C:\Temp\dumps\gw2e_$($env:COMPUTERNAME)_$($p.Id)_$ts.dmp full
22
23
24 # Validate the dump file
25 Get-ChildItem C:\Temp\dumps\gw2e_*.dmp | Select-Object Name, Length, LastWriteTime
26
27
28 Get-ChildItem C:\Users\APP\AppData\Local\Temp\2\gw2e.DMP | Select-Object Name, Length, LastWriteTime
