Taking a Process Monitor trace on Windows
Objective
Process Monitor stands as a system monitoring utility tailored for Microsoft Windows operating systems. This tool is integral to the Sysinternals suite, a compilation of sophisticated system utilities crafted by Mark Russinovich and Bryce Cogswell. The primary objective of Process Monitor is to furnish intricate details concerning the operations and interplays among processes executing on a Windows system.
To collect process information on the endpoint using Process Monitor (ProcMon), it is essential to execute the program with elevated privileges.
If Idira EPM is installed on the End Point, in order to ensure that these elevated privileges are exclusively applied to Process Monitor, we have created a dedicated policy specifically targeting this application.
To download and apply the dedicated policy specifically targeting Process Monitor (ProcMon), follow the link below:
https://community.cyberark.com/s/article/EPM-How-to-use-Process-Monitor-ProcMon-Policy-Requirement
Procedure
1. Download and Install Process Monitor:
- Get Process Monitor from Microsoft's website: https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
- Open the downloaded file and run the program.
2. Start Capturing Events:
- Open Process Monitor. It starts keeping track of what your computer is doing right away.
3. Filter Events (Optional):
- You can use filters to only see specific activities, like those of a certain program.
4. Reproduce the Issue (if applicable):
- If something's wrong and you're trying to figure out why, do the thing that causes the issue while Process Monitor is running.
5. Stop Capturing:
- When you've collected enough information, stop the tracking by clicking the magnifying glass or choosing "File" > "Capture Events."
6. Save the Capture:
- Save what Process Monitor tracked into a file so you can look at it later. Click "File" > "Save" and pick where you want to save it.
7. Analyze the Capture:
- Open the saved file in Process Monitor. This lets you look at what your computer was doing, like which programs were running and what files they were using.
8. Close Process Monitor: - Once you're done looking at the information, you can close Process Monitor.
In simple terms, Process Monitor helps you see what's happening on your Windows computer. It shows details about programs and how they're using your computer, making it easier to find and solve problems.
Some common filters which can be used in day to day troubleshooting.
-
Process Name Filter:
- Filter Expression: Process Name is <process_name>
- Example: Process Name is explorer.exe
-
Path Filter:
- Filter Expression: Path contains <path>
- Example: Path contains C:\Windows\System32
-
Result Filter:
- Filter Expression: Result is <result_code>
- Example: Result is NOT SUCCESS / ACCESS DENIED
-
Registry Operation Filter:
- Filter Expression: Path contains \REGISTRY\