I am trying to write a basic PowerShell script to Get-ADUser using the UserPrincipleName property. I have tried various items and all of them fail. I have tried
Get-ADUser -Properties {UserPrincipleName -eq "somename@domain.com"}
and have also tried
Get-ADUSer -Properties "someuser@domain.com"
I just am failing to understand how the -properties parameters relates to the UPN.