How can I set an alias for a property? For instance, Get-Aduser -Filter {SamAccountName -like "*dson*"} | Properties Name, msDS-cloudExtensionAttribute1 | Select Name, msDS-cloudExtensionAttribute1. Here, instead of msDS-cloudExtensionAttribute1, I want to set an alias. Could you reply me, how to set this alias?
How to Creating Alias in Powershell scripting | Set-Alias or New-Alias
How can I set an alias for a property? For instance, Get-Aduser -Filter {SamAccountName -like "*dson*"} | Properties Name, msDS-cloudExtensionAttribute1 | Select Name, msDS-cloudExtensionAttribute1. Here, instead of msDS-cloudExtensionAttribute1, I want to set an alias. Could you reply me, how to set this alias?