Finding And Using PowerShell Console History

Once you’ve typed a command into the PowerShell console, PowerShell, of course, interprets it into some sort of action that it completes, and returns you to an empty prompt. At least in an ideal world, that is what happens every time. Anyways, that command is now gone with the wind, never to be seen again… Or is it?In this video, Matt shows us how to retrieve your console history, which is what you’ve typed into the console over time. To do this, he uses the Get-History command and the popular PowerShell module called PSReadline. Once found, Matt also shows us how to invoke commands directly from our history.