Hi,
I would like to convert a Display Name in to a UserPrincipalName
When i run de following cmd in PS:
$UPN = Get-ADUser -Filter "CN -eq '$DisplayName'" | Select UserPrincipalName
The Value of $UPN = @{UserPrincipalName=example@mail.nl}
How do i get only example@mail.nl into $UPN
Thnx