Question : powershell command history file
Answered by : cortland-guse
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
Source : | Last Update : Sun, 01 May 22
Question : CMD & Powershell History
Answered by : annoyed-alligator-lsqba2u6g5kj
#cmd
type %userprofile%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
#Powershell
type $Env:userprofile\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt
Source : | Last Update : Wed, 29 Jun 22