Ptree.exe: Process TreeNEW


Process Tree allows you to query the process inheritance tree and kill processes on local or remote computers.

By default, local Administrators, Power Users, and Users can query the tree, but only local Administrators and Power Users can kill processes.

The tool consists of a kernel-mode driver (Ptreedrv.sys), a Microsoft® Windows® 2000 service (Ptreesvc.exe and Ptreesvcps.dll), a COM+ server (Ptreesvr.dll), a console client (Ptree.exe), and a GUI client (Ptreeg.exe). Ptreeg.exe allows you to manage the process inheritance tree on multiple computers simultaneously.

 

note-icon

Note

You can change the security settings of Process Tree by using Component Services in Administrative Tools at any time, because Process Tree uses COM+ role-based security.

Installation

Process Tree requires Windows 2000. Before using this tool, you must install it on your computer in a separate procedure after installing the Windows 2000 Resource Kit.

To Install Process Tree

  1. Run Ptree.msi from the \ptree sub-directory of the Windows 2000 Resource Kit installation directory.
    Ptree.msi installs Ptree.exe and Ptreeg.exe by default to the Windows 2000 Resource Kit installation directory.
    It also installs Ptreesvc.exe, Ptreesvcps.dll, and Ptreesvr.dll to the %windir%\system32 folder and Ptreedrv.sys to the %windir%\system32\drivers folder.
  2. Log off and re-logon to reset the Ptree service.

To Uninstall Process Tree

one stepUse Add/Remove Programs in Control Panel to uninstall Process Tree.

Process Tree Syntax

one stepptree [-c computer_name] [{-k | -kt} process] [{-? | /?}]

Where:

ptree run without arguments
shows the process tree on the local computer.
-c computer_name
specifies the name of the remote computer on which to show the process tree.
-k
kills process.
-kt
kills process and its sub-process tree.
process
specifies the process name or process ID (PID) to be killed by -k or -kt.
{-? | /?}
shows the command-line usage.

Files Required

Ptree.msi is installed by the Resource Kit Setup program in the Resource Kit\ptree sub-folder. Running Ptree.msi installs the following files by default into the Resource Kit installation directory:

Ptree.msi also installs the following files into the %windir%\system32\ folder: