Categories

Get-Alias surprise

On the principle that any day on which you learn something new is not a complete waste I stumbled over this today:

Get-Alias has a –definition parameter

I’d always done this

Get-Alias | where Definition -eq 'select-string'

now I can save some typing

get-alias -Definition 'select-string'

Easy

Leave a Reply