How to Get PowerShell History Across All Sessions

And not just the current session

Posted by admin on May 20, 2024

To see your PowerShell history across all sessions, run the following command.

cat (Get-PSReadLineOption).HistorySavePath | findstr cd

You will see result similar to the following.

cd .\test\
cd .\Test.Mvc\
cd C:\git\Test
cd C:\git
cd .\Test\
cd ..
cd .\test-old-hyperadmin-etc\

If you found value in this post, consider following me on X @davidpuplava for more valuable information about Game Dev, OrchardCore, C#/.NET and other topics.