November 21st, 2015

PowerTip: Find Free Commands in PowerShell 5

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.