Profile

加载中...

正在加载用户数据...

HR Manager

  • EmployeeID: 100002
  • DisplayName: Meimei Han
  • Department: HR Department
  • Description: Employee
  • Office: Beijing
  • SamAccountName: Meimei.Han
  • UserPrincipalName: Meimei.Han@minicontoso.com
  • DistinguishedName: CN=Meimei Han,OU=CorpUser,OU=ROOT,DC=minicontoso,DC=com

UserPrincipalName is like email address, but they are two different things.

After all, life is never so jolly or so miserable as people seem to think.

PowerShell

Get-ADUser lei.li -Properties * | Select-Object `
EmployeeID,DisplayName,Description,Department,Office,SamAccountName,UserPrincipalName,DistinguishedName | Format-Table

EmployeeID DisplayName Description Department    Office  SamAccountName UserPrincipalName      DistinguishedName
---------- ----------- ----------- ----------    ------  -------------- -----------------      -----------------
100005     Lei Li      Employee    IT Department Beijing Lei.Li         Lei.Li@minicontoso.com CN=Lei Li,OU=CorpUser,OU=ROOT,DC=minicontoso,DC=com