Reputation: 15
I am running command alias | where Name -like "*invoke*"
but it does not return anything. Why this happens?
When I run different command alias | where Name -like "*tee*"
it will return result just fine.
Is this some problem with how -like expression is built?
Upvotes: 0
Views: 351
Reputation: 24592
Use Definition
property instead of Name
. Name
property contains only alias name. For example in the case of Format-Table
, Name
property contains only ft
alias | where Definition -like '*invoke*'
Upvotes: 2