Method
Default location
`$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt`
Read the history file (default location):
type C:\Users\%username%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
Read from the Get-PsReadlineOption command
type (Get-PsReadlineOption).HistorySavePath
Last updated
Was this helpful?