Commands & scripts
PSReadLine history
PSReadLine can save commands entered in an interactive PowerShell host. This text history is useful for sequence and intent leads, but normally does not provide reliable per-command timestamps or results.
Listen to the full guide
Useful for
Support that particular command text was retained in the examined history file.
Important limit
Prove command success or exact timing from line order alone.
Location & availability
HistorySavePath from PSReadLine settings; commonly a per-user ConsoleHost_history.txt
The host, module settings, save style and filtering affect retention. Noninteractive scripts may not appear.
Fields to examine
- Retained command text and ordering.
- The profile, host and configured history path.
- File metadata, distinguished from individual command times.
What it can establish
- Support that particular command text was retained in the examined history file.
What it cannot prove
- Prove command success or exact timing from line order alone.
- Infer no script ran because the history file is empty.
Worked example
History contains a download command but no result. A matching browser or filesystem record may confirm a resulting file. Without such evidence, distinguish retained command text from a proven successful download.