A single pane of glass for real-time monitoring, troubleshooting and remediation across your IT infrastructure
A powerful tool to gain an understanding of your environment’s past behavior, optimization potential and future needs.
See and manage load balancers, gateways, and HDX session in real time
Measure, analyze, benchmark and improve load times for your enterprise key applications
Boost your management, troubleshoot, and remediation capabilities
with scripts created by experts in the IT community.
Version: 1.1.5Creator Name: mcDate Created: 2019-04-03Date Modified: 2019-04-03Scripting language: BATDownload Count: 70
REM ==================== Retrieve the Parent Process ================================
REM Retrieve the details of a process's parent process.
REM A WMI command is invoked to collect the Parent's PID and then used to filter tasklist results
REM Additional output options REMarked
ECHO Retriving the Parent process for PID %PID%
for /f "usebackq tokens=2 delims==" %%a in (`wmic process where ^(processid^=%PID%^) get parentprocessid /value`) do set parent=%%a
REM add the /NH switch if you want ot omit the headers
tasklist /FI "PID eq %PARENT%"
REM to get just the executalbe printed out un-REMark the following line:
REM for /f "tokens=1 delims= " %%a in ('tasklist /NH /FI "PID eq %PARENT%"') do ECHO %%a
Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.