How to: Use Procmon
Symptom
Applies To:
TLS Protect Datacenter
Summary:
Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. It captures detailed information about what programs are doing, including file access, registry changes, and process interactions.
Get Procmon from the official Microsoft website.
Info:
Basic controls focus on managing the captured events:
Capture: Start and stop recording system activity.
Clear: Erase all captured events or selectively clear filtered events.
Filter: Narrow down the event list based on criteria like process name, operation type, or result.
Event Properties: View detailed information about a specific captured event.
Capturing Events:
- Run: Double-click Procmon.exe to launch it (requires administrator access).
- Start Capturing: By default, Procmon starts capturing events as soon as you run it. If the issue takes some time to reproduce, you can stop capturing events and clear them until you are ready to reproduce the issue.
- Reproduce the Issue: Reproduce the problem you're troubleshooting while Procmon captures events. Note the approximate time of the issue's occurrence.
- Stop Capturing: Once done, stop capturing events
- Export Events (Optional): Go to File > Save, select "All Events", and save to the native PML format
Filtering Events:
- Select a Field: Choose the field you want to filter by from the dropdown menu (e.g., Process Name, Path, Operation, Result).
- Choose an Operator: Select the comparison operator (e.g., is, contains, begins with, ends with).
- Enter Value: Type the value you want to filter for in the text box (e.g., specific program name, operation type like "Create File").
Clearing Events:
- Clear All Events: Go to Edit > Clear Display. This removes all captured events from the view.
- Selective Clearing: Use filters (see below) to highlight specific events, then right-click and choose Clear Selection.
Event Properties:
Event properties in Procmon provides a granular view of what's happening within your system including, Identifying conflicting file access, Debugging network connectivity, Troubleshooting drivers.
- Right-click on an Event: Select an event in the list.
- Properties: Choose Properties to view detailed information about the selected event. This includes timestamps, process details, file paths, and operation results.
Tips:
- Compress any exported PML files before providing to Support. Files will be large if left running for longer than a minute. Procmon data is repetitive and will compress about 80%.
- Don't leave Procmon capturing all the time. Start capturing only when you're actively trying to reproduce the issue. This reduces log size and makes analysis easier.
- You can start applying basic filters while capturing events. This helps narrow down the data even before stopping the capture.
- Begin with basic filters and gradually add complexity as needed.
- Keep track of the steps you take and the insights you gain while analyzing events.
Environment
14.2;14.6