Viewing PowerShell History File on Windows.
Requirements Windows operating system Access to PowerShell Notepad (default Windows text editor) Step-by-Step Instructions Step 1: Open PowerShell Click on the Windows Start button, type PowerShell, and open the PowerShell application. Step 2: Enter the following command in PowerShell: notepad “$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt” Step 3: Press Enter. This command opens the ConsoleHost_history.txt file in Notepad, which […]