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:

I solve IT problems. I make your Company better.