+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
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 ...
  1. #1

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,267
    Thank Post
    55
    Thanked 285 Times in 191 Posts
    Rep Power
    136

    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??)

  2. #2
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Script to change user email in AD (or Exchange)

    'Guys' also includes females in my dictionary

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,047
    Thank Post
    3,579
    Thanked 1,119 Times in 1,024 Posts
    Rep Power
    377

    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

  4. #4

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Gosport, Hampshire
    Posts
    10,074
    Thank Post
    1,384
    Thanked 1,887 Times in 1,169 Posts
    Blog Entries
    19
    Rep Power
    614

    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 ...

  5. #5

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    490
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Script to change user email in AD (or Exchange)

    Quote 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.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    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.

  7. #7

    Join Date
    Sep 2005
    Posts
    22
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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

  8. #8

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    30
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    20

    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

  9. #9

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,267
    Thank Post
    55
    Thanked 285 Times in 191 Posts
    Rep Power
    136

    Re: Script to change user email in AD (or Exchange)

    Quote 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... :?

  10. #10
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    30

    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

  11. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    Re: Script to change user email in AD (or Exchange)

    Quote 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!

  12. #12
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    30

    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.

  13. #13

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    30
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    20

    Re: Script to change user email in AD (or Exchange)

    Quote 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!

  14. #14
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    30

    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

  15. #15

    Join Date
    Oct 2005
    Location
    East Midlands
    Posts
    747
    Thank Post
    17
    Thanked 109 Times in 69 Posts
    Rep Power
    38

    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:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Email name change for user in exchange
    By Uraken in forum Windows
    Replies: 4
    Last Post: 18th May 2007, 11:17 AM
  2. Script To Change A Registry Key
    By DaveP in forum Windows
    Replies: 6
    Last Post: 7th March 2007, 01:57 PM
  3. script to change permissions on Reg Key
    By e_g_r in forum Windows
    Replies: 4
    Last Post: 16th February 2007, 06:48 PM
  4. Replies: 4
    Last Post: 23rd November 2006, 10:33 PM
  5. 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
  •