Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR POWERSHELL

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:USERPROFILEAppDataRoamingMicrosoftWindowsPowerShellPSReadlineConsoleHost_history.txt
 
PREVIOUS NEXT
Tagged: #powershell #command #history #file
ADD COMMENT
Topic
Name
3+8 =