Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Changing targetAddress and proxyAddresses

$
0
0

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)}}

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles