AD: Get Display Name from user name (SAMAccountName)

I read’s blog get display name out of user name in a one line.

Here is a quick way to find the current user in your Active Directory and retrieve account information such as the display name:


I have even found easier way than using Active Directory PowerShell Module.

(Get-ADUser $env:USERNAME).name

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s