Active Directory
A set of directory-based technologies included in Windows Server.
6,937 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
$ou = "OU=Whatever,DC=MYDomain,DC=local"
Get-ADUser -Filter * -SearchBase $ou -Properties extensionattribute9 | Select-Object -ExpandProperty extensionattribute9
Hello, is someone able to help me with displaying extension attribute9 and next to it the users display name for everyone in the specified OU. The above code displays extension9 but I need help with getting it to also display the canonical name or display name also.
Simply add the desired properties, and drop the -ExpandProperty switch.
Get-ADUser -Filter * -SearchBase $ou -Properties DisplayName,extensionattribute9 | Select-Object DisplayName,extensionattribute9