I'm turning to update the settings in targetAddress and proxyAddreses. But I am having for issues.
Here is the code I have. I run without error but doesn't seem to do anything. I know this is only for targetAddress but I need to also change proxyAddresses.
Ideas?
Import-Module ActiveDirectory
Import-Csv "c:\test scripts\Fall2014-Current-EmailFix-test.csv"
Get-ADUser -Filter {sAMAccountName -eq '$_.users'} | % {Set-ADUser -Replace @{targetAddress=($_.target)}}