Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find PowerShell Aliases that Rename Commands

$
0
0

Summary: Use Windows PowerShell to find aliases that rename commands.

Hey, Scripting Guy! Question How can I find Windows PowerShell aliases that rename commands?

Hey, Scripting Guy! Answer Use the Get-Alias cmdlet, pipe the results to Where-Object, and look for a hyphen in the name:

Get-Alias | Where name -Match '-' | select name, definition


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>