If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hello Guest,Our records indicate that you have never posted to our site before! Why not make your first post today by saying hello to our community in our Introductions forum.

Please review the forums rules, start with your first post today and become an active part of petri.co.il forums now!

add 2nd SMTP address in bulk, possible?

26th June 2007, 10:48

Hi,
I have been reading about ADModify tool. Can it mass-add a secondary SMTP address to all users within our organization & make it the "primary address"? If not, any ideas on how we can get this done?

You need a textfile containing the Usernames plus the new Emailaddress. That is the only way you can match the correct user with its new email address.

If you use a vbscript, keep in mind that the primary address of an object must start with uppercase SMTP: and all secondondaries starts with lowercase smtp:
And there can only be one Primaryaddress! so before adding a new primary change the current primary first to a secondary.

It is a start.
The next thing to do is to change the beginning of the script so it can read the lines of a text-file containing the user names and emailaddresses, create a loop to process line by line.

\Rems

This posting is provided "AS IS" with no warranties, and confers no rights.__________________