samaacount name to Display name

Team,

Please help me with the power shell command to get the Deisplay name from Samaccount name.

February 20th, 2015 9:07am

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

Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 9:28am

I want to get Deisplay name from Samaccount name of single OU. Or how we can export from .csv file in which we have details of Samaccount.
February 20th, 2015 11:34pm

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

Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2015 10:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics