# Specify process name | |
$ProcName = "K2HostServer" | |
$procid=get-process $ProcName |select -expand id | |
# Create target folder if not exist: | |
$DumpPath="C:\dumps" | |
If (!(Test-Path $DumpPath)) | |
{ | |
Write-Host 'Creating folder' | |
(New-Item $DumpPath -ItemType Directory | out-null) | |
} | |
Else { | |
Write-Host 'Folder already exist' | |
} | |
# Make sure correct path to procdump.exe specified below | |
C:\dumps\procdump.exe -accepteula -ma $procid $DumpPath\$ProcName.dmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment