+ 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
    1,851
    Thank Post
    32
    Thanked 185 Times in 119 Posts
    Rep Power
    86

    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. IDG Tech News

  3. #2
    mark's Avatar
    Join Date
    Jun 2005
    Location
    x-communicated
    Posts
    4,090
    Blog Entries
    2
    Thank Post
    190
    Thanked 44 Times in 40 Posts
    Rep Power
    42

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

    'Guys' also includes females in my dictionary

  4. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    7,026
    Thank Post
    1,088
    Thanked 641 Times in 598 Posts
    Rep Power
    209

    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

  5. #4

    GrumbleDook's Avatar
    Join Date
    Jul 2005
    Location
    Kettering, Northants
    Posts
    9,488
    Blog Entries
    18
    Thank Post
    929
    Thanked 1,425 Times in 912 Posts
    Rep Power
    470

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

  6. #5

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    495
    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.

  7. #6
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114

    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.

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

  9. #8

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    23
    Thank Post
    1
    Thanked 2 Times in 1 Post
    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

  10. #9
    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    1,851
    Thank Post
    32
    Thanked 185 Times in 119 Posts
    Rep Power
    86

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

  11. #10
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,872
    Thank Post
    13
    Thanked 40 Times in 34 Posts
    Rep Power
    24

    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

  12. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,623
    Thank Post
    96
    Thanked 685 Times in 528 Posts
    Rep Power
    158

    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!

  13. #12
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,872
    Thank Post
    13
    Thanked 40 Times in 34 Posts
    Rep Power
    24

    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.

  14. #13

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    23
    Thank Post
    1
    Thanked 2 Times in 1 Post
    Rep Power
    14

    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!

  15. #14
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,872
    Thank Post
    13
    Thanked 40 Times in 34 Posts
    Rep Power
    24

    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

  16. #15

    Join Date
    Oct 2005
    Location
    East Midlands
    Posts
    677
    Thank Post
    10
    Thanked 99 Times in 62 Posts
    Rep Power
    31

    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, 10: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
  •