[Powershell for Administrators] F7 and F9 history no longer supported in Powershell
-
Hello,
In the course Powershell for Administrators, unit Getting Started with Powershell, Command History the instructor teaches how to use F7 and F9 to recall and invoke history from within Powershell. I'm following along with the material and I'm puzzled because neither function key actually does anything within Powershell.
Searching around the web I found a post on Reddit pointing out that the F7 and F9 commands are not supported in conjunction with the PSReadLine module which is on by default in Powershell for Windows 10.
The course material should be updated to clarify this confusion or at least mention in the show notes that the function keys are no longer supported by default in Powershell.Thank you!
-
Hello @Kyle-Hardin-0 ,
You are correct, command history in PowerShell is handled differently starting with PowerShell v5.0 and the introduction of the PSReadline module. This module introduced persistent command history, and is accessed differently. I cover this topic in the "PowerShell Basics for Administrators" series. Here is a link to the specific episode.
https://itpro.tv/course-library/powershell-2017/2017-command-historyaliases/
The course "PowerShell for Administrators" was filmed using PowerShell v4.0. This series will eventually be moved to the legacy courses, but much of the content is still relative.
I agree this could be a point of confusion, and will add something to the show notes or maybe hide that particular episode.
Thanks for bringing this to our attention!!
Mike