Last active
November 17, 2021 07:27
-
-
Save NaClYen/e64cc7807fb03af42daeea2553608233 to your computer and use it in GitHub Desktop.
powershell find alias by keyword
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find DisplayName related to 'alias' | |
Find-Alias alias |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Find-Alias { | |
param ( | |
$KeyWord | |
) | |
return Get-Alias | Select-Object DisplayName | Select-String $KeyWord | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Find-Alias { | |
param ( | |
$KeyWord | |
) | |
return alias | select DisplayName | sls $KeyWord | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment