Prefetch files in Windows are used to speed up the loading of software. Analyzing these files can provide insights about program execution history, which is valuable in digital forensics.
Step 1: Download the Tool
Go to to find the latest version of the tool.
Download the PECmd tool, which may be part of his command line tools suite.
Step 2: Prepare the Environment
Extract the downloaded zip file to a folder of your choice.
Place the Prefetch files you wish to analyze into a directory that's easily accessible.
Step 3: Open Command Prompt and Navigate to the Tool's Directory
Win + R, type cmd, and hit Enter to open the Command Prompt.
Open the CSV in your preferred program and analyze the data for execution patterns.
Additional Options
For a list of all commands:
.\PECmd.exe --help
Using PECmd.exe on a CSV of Prefetch Names
Sometimes, when I'm conducting incident response, I only ahve access to CrowdStrike Real Time Response (RTR) which tends to be more often than not. Depending on your permissions level, you may not have access to run PECmd.exe within a live response option or on the host.
In cases like this, I grab an output of all of the file names within the hosts prefetch and parse them on my workstation.
To use PECmd.exe on a CSV of Prefetch file names:
Ensure your CSV file is formatted properly, with each Prefetch file path on a separate line.