如何使用加入域的计算机中的 UPN\用户名查询 Active Directory 中的用户电子邮件

问题描述 投票:0回答:1

如何使用加入域的计算机中的 UPN\用户名查询 Active Directory 中的用户电子邮件?

authentication active-directory ldap
1个回答
0
投票

使用powershell

Get-ADUser -Filter { UserPrincipalName -eq "[email protected]" } -Properties EmailAddress | Select-Object Name, EmailAddress

Get-ADUser -Filter { SAMAccountName -eq "username" } -Properties EmailAddress | Select-Object Name, EmailAddress


© www.soinside.com 2019 - 2024. All rights reserved.