How to see command history in powershell

13 March 2025

All commands are stored in this path: 

%userprofile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt

Just open it and look for the command wanted.

Info.

Check out more IT nuggets at www.ruizpelaez.com.

A bit (1,0) about me:

IT Admin with positive attitude, self-taught, hard worker,  problem solver.  Always improving and learning new skills.