How it works...
The process of defining the alias is rather self-explanatory once we know the syntax. However, parameter aliases serve a purpose that's a little more on the functional side than serving as keystroke reducers: backward compatibility. PowerShell has evolved over time. Standardization may not have come into PowerShell overnight. From time to time, the creators of PowerShell modules have had to rename parameters in order to either make them adhere to standards, or to enhance functionality.
However, doing this could potentially break several scripts out there, many of which may have been shared publicly and used by hundreds of teams worldwide. Therefore, the old names of these parameters would be converted into aliases for the ...
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