Scripts Thread, Script to change user email in AD (or Exchange) in Coding and Web Development; We're just going to jump from the local RBC email to Exchange - but the default email addresses for users ...
-
21st September 2005, 10:20 PM #1 Script to change user email in AD (or Exchange)
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
<user>@<school>.local, and (I think) the need to be
<user>@<school>.<county>.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??)
-
-
IDG Tech News
-
21st September 2005, 10:25 PM #2 Re: Script to change user email in AD (or Exchange)
'Guys' also includes females in my dictionary
-
-
22nd September 2005, 07:38 AM #3 Re: Script to change user email in AD (or Exchange)
www.computerperformance.co.uk should have lots of examples regarding the AD and how to do certain things
If not I will have a look at it later
-
-
22nd September 2005, 07:40 AM #4 Re: Script to change user email in AD (or Exchange)
You are using .local?
muttermumblebloodymicrosoftnotupdatingdocumentatio nmuttermumble.
You do know that it will cause problems for anything using any flavour of zeroconf? Macs etc ...
-
-
22nd September 2005, 08:09 AM #5
- Rep Power
- 0
Re: Script to change user email in AD (or Exchange)

Originally Posted by
GrumbleDook You are using .local?
muttermumblebloodymicrosoftnotupdatingdocumentatio nmuttermumble.
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.
-
-
22nd September 2005, 08:18 AM #6 Re: Script to change user email in AD (or Exchange)
use .local makes macs ill. using no subdomain at all makes windows ill. We just use our .sch.uk FQDN here.
-
-
22nd September 2005, 08:44 AM #7
- Rep Power
- 0
Re: Script to change user email in AD (or Exchange)
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
-
-
22nd September 2005, 10:36 AM #8
- Rep Power
- 14
Re: Script to change user email in AD (or Exchange)
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.%s@yourdomain.yourschool.sch.uk this will give you firstname.surname@yourdomain.yourschool.sch.uk
or you can do %m@yourdomain.yourschool.sch.uk will do you username@yourdomain.yourschool.sch.uk
you can set which ever as your primary
it will change everyones default email inline with the policy
-
-
22nd September 2005, 11:22 PM #9 Re: Script to change user email in AD (or Exchange)

Originally Posted by
chrisg 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.%s@yourdomain.yourschool.sch.uk this will give you
firstname.surname@yourdomain.yourschool.sch.uk
or you can do %m@yourdomain.yourschool.sch.uk will do you
username@yourdomain.yourschool.sch.uk
you can set which ever as your primary
it will change everyones default email inline with the policy
Now thats what I call help
- you're due a beer at the conference (should we find a pub in Corby that you dare go in... :?
-
-
27th September 2005, 01:34 AM #10 Re: Script to change user email in AD (or Exchange)
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
)
- 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 " <username>@curriculum.FQDN "
Any thoughts welcome there 
Cheers
Nath
-
-
27th September 2005, 10:28 AM #11 Re: Script to change user email in AD (or Exchange)

Originally Posted by
tarquel - 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 " <username>@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!
-
-
27th September 2005, 08:58 PM #12 Re: Script to change user email in AD (or Exchange)
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.
-
-
29th September 2005, 12:41 PM #13
- Rep Power
- 14
Re: Script to change user email in AD (or Exchange)

Originally Posted by
tarquel Is the training course really needed?
try buying this book 1st its a lot cheaper than the course
http://www.amazon.co.uk/exec/obidos/...869031-4869256
if you are not planning to impliment many exchange boxes across multiple AD domains you possibly don't need the course
CG
PS on the exchange course now!
-
-
30th September 2005, 01:24 AM #14 Re: Script to change user email in AD (or Exchange)
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
-
-
8th November 2005, 07:56 PM #15 Re: Script to change user email in AD (or Exchange)
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.
-
SHARE:
Similar Threads
-
By Uraken in forum Windows
Replies: 4
Last Post: 18th May 2007, 10:17 AM
-
By DaveP in forum Windows
Replies: 6
Last Post: 7th March 2007, 01:57 PM
-
By e_g_r in forum Windows
Replies: 4
Last Post: 16th February 2007, 06:48 PM
-
Replies: 4
Last Post: 23rd November 2006, 10:33 PM
-
Replies: 8
Last Post: 12th November 2006, 03:02 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules