In a rush of sudden enthusiasm I have taken on some extra work for a neighboring school and I have inherited an exchange 2007 box. This is now a little out of my territory having been playing with postfix/zimbra so long.
Under normal circumstances I would just rip out the exchange and put in something else, I am not allowed to on this occasion.
What I do need to do is to change the recipient addresses of all the users.
They are currently mail.school.sch.uk but they are changing to brandnewacademy.sch.uk
I have got the LEA setup MX records for brandnewacademy.sch.uk which points to this new exchange server.
I was about to run this script on each OU to set the primary smtp address, because this is how I told our AD where our zimbra accounts were.
But I think there is probably more to exchange than this?Code:Set objParent = GetObject("LDAP://ou=users,OU=school,DC=sch,DC=uk") objparent.Filter = Array("user") for each objUser in objParent 'Wscript.Echo "Modifying " & objUser.Get("sAMAccountName") objUser.put "mail", objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk" objuser.put "targetAddress","SMTP:" & objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk" objuser.put "proxyAddresses", "SMTP:" & objUser.Get("sAMAccountName") & "@brandnewacademy.sch.uk" objuser.Setinfo next Wscript.Echo "Done ;)"
I was reading here;
According to Defining an Exchange 2007 E-Mail Address Policy, Part 2
but am still unsure how to proceed as that seems to be for new users?
any pointers please.



LinkBack URL
About LinkBacks
Reply With Quote



TeaBoy@... being one of them LOL!
i have a mean boss lol!

