targetAddress (updated)

This is is quite a cool property of an object … The TargetAddress property specifies the delivery address to which e-mail for this recipient should be sent.

 So if you have played with the Quest Migration Tools you will know that this magic property is what they use to control where email is sent.  Anyway, I want to see how easy it is to update the propery on a user object, and it’s really simple with Powershell!

$user = [ADSI]LDAP://:389/
$user.targetAddress = SMTP:whatever@domain.com
$user.SetInfo()

thats its it .. how cool is that

UPDATE: Many thanks to Henrik Walther for picking up on my copy and paste mistake (wow I didn’t realise he read this blog .. cool).  Henrik also mentioned that this method isn’t supported by MS and that things such as a mailbox move wipes out the address

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.