PowerTip: Find Free Commands in PowerShell 5

Doctor Scripto

Dr 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'})


Comments are closed. Login to edit/delete your existing comments