locked
How to create email address policy with employeeid? RRS feed

  • Question

  • I have exchange 2003 and Windows 2008 active directory environment. We have added employee_id attribute to each user account in active directory through script. All users have an email address in the fomat %1g%s@domainname.com through email address policy .NowI have requirement to add an additional email address for each user in the following fomat:

    employee_id@domainname.com

    Can you please help me that how I can add this new email address for each user through email address policy?

    Thanks,


    Liaqat
    Monday, January 23, 2012 6:53 PM

All replies

  • If it's an attribute that's not exposed as a variable in the policy templates, you'll need to script it.


    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    Monday, January 23, 2012 6:57 PM
  • I am not a script expert person. Can you please guide me through the steps that how I can acomplish this task? I will really appreciate your help.

    Thanks,


    Liaqat
    Monday, January 23, 2012 7:27 PM
  • Are you wanting to script this yourself, or just get a script that will do it?

    If you're wanting to learn to script (highly recommended) I'd start at the Scritpting Guy's home page:

    http://technet.microsoft.com/en-us/scriptcenter/bb410849

    Choose a scripting language - I highly recommend Powershell.

    You're going to be updating AD attributes, so you want to investigate the methods for doing that in whatever language you choose.  You can go to the scripting forum threads for help, but they tend to frown on "somebody write me a script" approaches.  They'll be happy to help you sort out your own code, but don't like to do other people's work for them.

    If you're just wanting a script, you need to find a consultant who can write one for you, and be available to call if it ever needs changed or starts having unintended consequences. 

     


    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    Monday, January 23, 2012 7:42 PM
  • If you will have this script then please send it to me, because it will save my time.

    Thanks,


    Liaqat
    Monday, January 23, 2012 8:10 PM
  • Hello,

     

    Yes, your requirement must be met by a script. For the script related question, you can create a new thread to our Development forum via:

     

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads

     

    Thanks,

    Simon Wu

    Exchange Forum Support

     

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

     

    Tuesday, January 24, 2012 8:07 AM
    Moderator
  • Hi Simon;

    Thanks for reply and recomendations. I have created a thred in Development forum for this script with detailed information. Here is the url:

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/91c60cdb-873c-4d17-ab03-cf8f5cb8738d

    Thanks,


    Liaqat
    Tuesday, January 24, 2012 10:55 PM
  • Hello Liaqat,

     

    Thank you for your understand and I hope you can find the answer there soon.

     

    Thanks,

    Simon Wu

    Exchange Forum Support

     

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

     

    Wednesday, January 25, 2012 4:06 AM
    Moderator