Trying to change contact targetaddress with admodcmd

Mar 27, 2008 at 9:54 PM
I am trying to change the targetaddress for contacts in a certain OU. Here is my syntax:

admodcmd -dn "OU=source users,dc=source,dc=local" -f targetaddress=* -custom targetaddress "smtp:%'mailNickname'%@domain.local"

The mailNickname variable gets dropped and the new targetaddress is: @domain.local

I can successfully change a contact target address with (GUI). However, I need to do this on a recurring basis and wanted to use the command tool.

Any ideas or suggestions?