I want to take user dump of a process using powershell How can i do it? The same I get on rightclicking the process in Taskmanager
相关问题
- How to Debug/Register a Permanent WMI Event Which
- How can I do variable substitution in a here-strin
- How to use a default value with parameter sets in
- Does powershell have a method_missing()?
- Invoking Mirth Connect CLI with Powershell script
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- C#调用PowerShell的问题
- EscapeDataString having differing behaviour betwee
- PowerShell Change owner of files and folders
- Command line escaping single quote for PowerShell
- Is there a simple way to pass specific *named* Pow
- How do I access an element with xpath with a names
- How to 'Grant Permissions' Using Azure Act
Hi sorry I'm not much help. I've never used a DUP file before. But there is a WMI class called Win32_Process:
Not sure if that's the info you are looking for. Has different properties than Get-Process.
The easiest way is to use Procdump from Sysinternals toolkit. Use
Get-Process
to get process id, which you can pass to Procdump for actual dumping.Edit:
I'd still rather use readily available tools instead of the hard way. Have you got a valid business reason? Since you insist, there is a Win32 API call that creates user mode memory dumps. It can be invoked from .Net code, so either use P/Invoke or embed C# into your Powershell code. This is left as an exercise to the reader.
I had a similar use case where I needed to create a dump for an IIS process. Granted I could have used DebugDiag, but I ended up going down this path. Here's what I used (and works pretty well, I should add):
Furthermore, you could use these dump files for analysis using DebugDiag too. So it's a win-win in my opinion.