Expand Minimize

Do not use CmdLet Aliases

Do not use CmdLet aliases with the exceptions of "cat", "cp", "curl", "diff", "echo", "kill", "ls", "man", "mount", "mv", "ps", "pwd", "rm", "sleep", "tee", "type", "wget" which are acceptable and whitelisted.

CheckId SPC059106
TypeName AvoidUsingCommandAliases
Severity Error
Type PowerShell File

Bad Practice

gal | select definition, @{label="length"; expression={$_.definition.length}} | sort length
Good Practice
Get-Alias | Select-Object definition, @{label="length"; expression={$_.definition.length}} | Sort-Object length

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.