Lesson 1.5

Collect from the command line

Run Arcsentry Collector from an elevated terminal on Windows or Linux: the collect command, its essential options, and ready-to-use examples for live hosts.

12 minEveryone
At a glance for experienced analysts
  • Source: exactly one of -L/--local, -i/--image, -m/--mount-point. Targets: -t (repeatable, several ids per flag).
  • Output: -o is the folder (must exist), -f the file name (default collection-<UTC time>.arcx).
  • Password: -W/--password-file, or the ARCSENTRY_PASSWORD environment variable; -p works but shows in the process list. -N turns encryption off.
Command line
arcsentry-collect collect --local -t windows::profile::triage::priority -o E:\IR -f WS01.arcx --password-file E:\IR\pw.txt

The shape of a collection command

arcsentry-collect collect <source> -t <targets> -o <folder> [-f <name>.arcx] <password> [options]

Live collection

From an elevated PowerShell (lesson 1.2):

.\arcsentry-collect.exe collect --local `
  -t windows::profile::triage::priority `
  -o E:\IR -f HF-WS01.arcx `
  --password-file E:\IR\pw.txt `
  --case-id HF-2026-014 --examiner j.analyst --collection-reason "Suspected intrusion"
sudo ./arcsentry-collect collect --local \
  -t linux::profile::triage::priority \
  -o /mnt/usb/IR -f web01.arcx \
  --password-file /mnt/usb/IR/pw.txt \
  --case-id HF-2026-014 --examiner j.analyst --collection-reason "Portal compromise"

The options you will use most

Option What it does
-L, --local Collect from the running machine
-i, --image <file> Collect from a disk image (lesson 1.6)
-m, --mount-point <folder> Collect from a mounted volume (lesson 1.6)
-t, --target <id>... Profiles or targets to collect; repeat, or list several after one flag
-o, --output <folder> Folder the archive is written to. It must already exist
-f, --output-file <name> Archive file name. Default collection-<UTC time>.arcx
-W, --password-file <file> Read the password from the first line of a file
-p, --password <text> Inline password. Visible in the process list, so prefer the file
-N, --no-encryption Write an unencrypted archive
-c, -e, -r Case ID, examiner and collection reason, recorded in the manifest
-g, --staging-root <folder> Where files are staged before archiving, if the default volume is small
-j, --threads <n> Worker threads; default 8
-Q, --disable-progress-bar No progress bar, for logs and pipes
--status-file <file> Write machine-readable progress to a JSON file

Passwords are taken in this order: --password, then --password-file, then the ARCSENTRY_PASSWORD environment variable.

Collecting several things at once

sudo ./arcsentry-collect collect --mount-point /mnt/host01 \
  -t linux::profile::logs linux::profile::shell \
  -o /evidence -f host01.arcx --threads 16 --password-file /secrets/case.pw

Run arcsentry-collect collect --help to see every option your version supports.

Check yourself

1. You run collect --local -t ... -o E:\IR\WS01.arcx. What is wrong?
2. Which way of giving the password keeps it out of the process list and shell history?
Progress is saved in this browser only.