Jump to content

Script to change user email in AD (or Exchange)


Recommended Posts

Posted

We're just going to jump from the local RBC email to Exchange - but the default email addresses for users within AD have been set to

@.local, and (I think) the need to be

@..sch.uk

 

Is there a quick way of changing this within AD - or can someone point me towards a script that might be adapted to do it?

 

Cheers guys (not sexist - but you mostly are guys, aren't you??)

Posted

You are using .local?

muttermumblebloodymicrosoftnotupdatingdocumentationmuttermumble.

 

You do know that it will cause problems for anything using any flavour of zeroconf? Macs etc ...

Posted
You are using .local?

muttermumblebloodymicrosoftnotupdatingdocumentationmuttermumble.

 

You do know that it will cause problems for anything using any flavour of zeroconf? Macs etc ...

 

Ironically enough, i was informed setting up the fqdn could "cause problems" by someone at our local portion of the NGfL :sigh: , but our domain is set up that way anyway.

Posted

i think your looking at something along the lines of using dsquery and dsmod.

 

this is a command line tool for interacting with AD.

 

for example..

 

dsquery user "ou=MYUSERSOU, ou=MYWORKOU, dc=DOMAINNAME, dc=oxon, dc=sch, dc=uk" | dsget user -email >> test.txt

 

will return all the email addresses in that ou to a text file. using this stlye of scripting should allow you to do the change. as i don't have an exchange schema on my AD i can't give you the solution, but hopefully this might help.

 

Alan

Posted

If you are using exch 2003 you can do it in system manager

 

Exch Org

--> Recipents

--> Recipient Polices

--> Defualt Policy (unless you have defined your own)

 

you can set up what ever you need as email addresses, if you do %g.%[email protected] this will give you [email protected]

 

or you can do %[email protected] will do you [email protected]

 

you can set which ever as your primary

 

it will change everyones default email inline with the policy

Posted
If you are using exch 2003 you can do it in system manager

 

Exch Org

--> Recipents

--> Recipient Polices

--> Defualt Policy (unless you have defined your own)

 

you can set up what ever you need as email addresses, if you do %g.%[email protected] this will give you [email protected]

 

or you can do %[email protected] will do you [email protected]

 

you can set which ever as your primary

 

it will change everyones default email inline with the policy

 

 

Now thats what I call help :D - you're due a beer at the conference (should we find a pub in Corby that you dare go in... :?

Posted

lol @ SpuffMonkey

 

Will be having to play test exchange very soon. Just wondering what to do, inline with what chrisg mentioned above (welcome welcome welcome chris :D)

 

- when setting up the exchange server, is it ok to attach it to the curriculum domain, even tho admin users on a seperate domain will be using it?

- how will this affect the email address? is that something that i should worry about, as i'm worried the emails wont work as it'll have " @curriculum.FQDN "

 

Any thoughts welcome there :)

 

Cheers

Nath

Posted

- when setting up the exchange server, is it ok to attach it to the curriculum domain, even tho admin users on a seperate domain will be using it?

- how will this affect the email address? is that something that i should worry about, as i'm worried the emails wont work as it'll have " @curriculum.FQDN "

 

* That's fine, I do it here

* All users have the same FQDN for their email address although you can assign different email addresses to different people using policies of simply in the ezxchange properties of a user's account.

 

Exchange is ace! :D

Posted

Is the training course really needed?

 

I so want to set one up (when the trail version came out - i set up one and it worked internally which was real nice. Didnt have to do hardly anything lol) - because i think it looked ace AND its another addition to the c.v. ;)

 

Regards

N.

Posted

lol @ chris

 

nothing that complex no chris. Just one exchange box over two domains (attached to one) and will be reverse-proxied for external access :)

 

Make ask for the book tho cheers :)

 

Regards

Nath

  • 1 month later...
Posted

SpuffMonkey,

 

First of all you have the right thing - moving away from RBC's email system to exchange server.

 

The reciepient policy ChrisG mentioned can also be done Exchange 2000 server as well, we used this on our echange server. For more information i use the mxexchange.org - an excellent website for Exchange server - lots of handy tips and tricks.

 

Ashok.

Posted
Would I be right in thinking that for a single Exchange box to work across two domains, the domains must be in the same forest? If this is not the case, I would be interested to know how users from a domain in a seperate forest can use an exchange box in another (without duplicate user accounts anyway).
Posted
You are using .local?

muttermumblebloodymicrosoftnotupdatingdocumentationmuttermumble.

 

You do know that it will cause problems for anything using any flavour of zeroconf? Macs etc ...

 

Sorry for slightly off topic.

 

I had fun during the last half term going through the 81 pages of how to change your domain name for this very reason.

 

I've always used it because: Windows 2000 loved to attempt to send ddns updates to isp dns servers, it was default in Windows 2000 server, its still default suffix on 2003 server. I didn't have any Macs.

 

Then last January I got my own Mac Mini, I have .local at home, I found this issue. I then realised we wanted to get a mac server and suite at school, this is when you hit the 'gaaaaaaaaah' stage.

 

As exchange is only *about* to be installed on the domain, I was able to sucessfully rename the domain, not too painfully (apart from double reboots and printers (and created hosts). This turned out to be an excercise in why I like dhcp so much. Reboot twice, host dissapears from .local and appears in new domain (.school here). A single DC helped too (I know - but I have new servers coming online soon)

 

2003 sp1, default choice for domain is still organisationname.local :p

 

David

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...