I have the below script which run on powershell to update the user attribute .
get-qaduser -sizelimit 999999 | foreach {
$upn = $_.userprincipalname
$username = $samAccountName
$emaildomain = "@domainname.com"
$fullemail = "$username$emaildomain"
set-qaduser $upn -email $fullemail
}
Can advise if I would like to send the alert to my email a/c to display what user attribute have been updated ( if possible , is it also ok to keep it in the log ) , what can i do ? thanks