Working with parameter aliases
We've already seen in the previous recipes that parameters can be called without having to specify the entire name, but enough characters to uniquely identify them. For instance, if ComputerName were a parameter, and the cmdlet had no other parameter that starts with c, we could simply say -c MyPc instead of -ComputerName MyPc. However, if the cmdlet also had a ComputerType parameter, then you would have to call ComputerName -computern MyPc, at the very least.
In such situations, especially when running commands on the terminal, we could use a shorter version of these parameter names. This is one of the situations where parameter aliases help. You will notice that, in many cmdlets, you could specify the ComputerName ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access