powershell command history file
Get-History | Format-List -Property * #By default, the PowerShell in Windows 10 saves the last 4096 commands that are stored in a plain text file located in the profile of each user: get-content $env:USERPROFILE\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
powershell history file
Get-PSReadlineOption | select HistoryNoDuplicates, MaximumHistoryCount, HistorySearchCursorMovesToEnd, HistorySearchCaseSensitive, HistorySavePath, HistorySaveStyle