Amcache
Windowsv1
Author: Eric Zimmerman
description
Amcache.hve
paths
4 paths
ApplicationCompatibilityAmcache
C:\Windows\AppCompat\Programs\Amcache.hveApplicationCompatibilityAmcache
C:\Windows.old\Windows\AppCompat\Programs\Amcache.hveApplicationCompatibilityAmcache transaction files
C:\Windows\AppCompat\Programs\Amcache.hve.LOG*ApplicationCompatibilityAmcache transaction files
C:\Windows.old\Windows\AppCompat\Programs\Amcache.hve.LOG*› paths use Windows environment syntax
collection commands
# PowerShell Artifact Collection Script
# Target: Amcache
# Run as Administrator
#Requires -RunAsAdministrator
$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"
# Function to handle directory creation and copying
function Collect-Artifact {
param (
[string]$SourcePath,
[string]$FolderName
)
$FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
if (-not (Test-Path -Path $FullDest)) {
New-Item -ItemType Directory -Path $FullDest -Force | Out-Null
}
Copy-Item -Path $SourcePath -Destination $FullDest -Recurse -Force
}
# 1. Amcache
Collect-Artifact -SourcePath "C:\Windows\AppCompat\Programs\\Amcache.hve" -FolderName "Amcache"
# 2. Amcache
Collect-Artifact -SourcePath "C:\Windows.old\Windows\AppCompat\Programs\\Amcache.hve" -FolderName "Amcache"
# 3. Amcache transaction files
Collect-Artifact -SourcePath "C:\Windows\AppCompat\Programs\\Amcache.hve.LOG*" -FolderName "Amcache_transaction_files"
# 4. Amcache transaction files
Collect-Artifact -SourcePath "C:\Windows.old\Windows\AppCompat\Programs\\Amcache.hve.LOG*" -FolderName "Amcache_transaction_files"
Write-Host "Collection complete!" -ForegroundColor Green› Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1