PowerTip: Find Free Commands in PowerShell 5

Doctor Scripto

Summary: Learn how to find free commands in Windows PowerShell 5.0.

Hey, Scripting Guy! Question I would like to customize my command line experience in Windows PowerShell 5.0, but I don’t want to write
           a lot of code. How can I find available commands that are not bound to any keyboard chord sequence?

Hey, Scripting Guy! Answer Use the Get-PSReadlineKeyHandler and look for unbound commands:

(Get-PSReadlineKeyHandler).where({$_.key -eq 'unbound'})


Discussion is closed.

Feedback usabilla icon