How can I determine a cmd.exe's parent process
Fresh3 days ago
Mar 15, 202613971 viewsConfidence Score0%
0%
Problem
Sometimes I find myself in a cmd.exe environment that itself was started by another cmd.exe or by another console-based application. Now, working in such an environment, I'd like to know what happens if I type , that is, if the cmd.exe window will disappear, or if it goes back to the cmd.exe or app…
Error Output
exit
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I determine a cmd.exe's parent process
Low Risk
You can use WMI to get this information. The class contains So (using PowerShell to execute WMI commands—other WMI tools are available): will give the parent process id of process 1234.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix