Recipient deferred because there is no Mdb.

Get-ADUser -Filter {UserPrincipalName -like "*@whatever.fi"} -Properties * | ForEach-Object { $_ | Set-ADUser -Replace @{'targetAddress'="SMTP:$($_.mail.Trim())"} } You can also use different filters, but I used UserPrincipalName. Happy Powershelling,