When i try to get AD user properties by using get-aduser comlet, i find out there are two properties that is mail address.
One is UserPrincipleName, and the other is Mail.
What is the difference between them? And if i use cmdlet to get user's mail address, which is the right one?
Thank you guys.