Team,
Please help me with the power shell command to get the Deisplay name from Samaccount name.
Technology Tips and News
Team,
Please help me with the power shell command to get the Deisplay name from Samaccount name.
Get-Mailbox -Identity <Account> | ft displayname you can use to get it for one user. Or if you just want a list of Samaccount names and display names you do this:
Get-Mailbox -ResultSize Unlimited | ft SamAccountName, DisplayName
Hi,
From your description, you can use the following cmdlet to export users' SamAccountName and DisplayName in an organization unit to a .csv file.
Get-Mailbox -Resultsize Unlimited -OrganizationalUnit "xxx" | Select SamAccountName,DisplayName | Export-Csv c:\users.csv -NoTypeInformation
Hope this can be helpful to you.
Best regards,
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com