Thank you for the example... However it isn't working. This is the code that I am using. It'll say it changes it, but when I view it in AD, it's still blank.

Code:

$UserObj = GetObject("LDAP://ou=Employees,ou=Users,ou=Location,dc=Company,dc=com")
$UserObj.Filter = Split('user')

For Each $User in $UserObj
$Address = Lcase($User.sAMAccountName) + "@@mycompany.com"
? 'Current address is: ' + $User.Get("mail")
$User.put("mail",$Address)
$User.setinfo
? 'E-mail address is now set to: ' + $User.Get("mail")
Next

Sleep 10



Do I have to run it with elevated permissions?

HELP!!!!