locked
Can Set-RemoteDomain be used on a subset of users? RRS feed

  • Question

  • I have about 150 users in an Exchange 2007 enviornment and 15 of them work for two companies.  Each company has a different email domain, but both are handled by the same Exchange server.

    For various reasons each user needs to have a separate Mail and AD account for each of the companies, so 2 accounts are in place for each of the 15 users.  Their accounts look like this in EMC/AD:

    John Doe
    John Doe (RKC)

    (RKC) is the company with 15 users.

    However they no longer want (RKC) showing up in the display name on outbound emails.  So, I found that running Set-RemoteDomain "Default" -UseSimpleDisplayName $true  allowed me to set "John Doe" as the Simple Display Name in EMC and accomplish what they were looking for.

    This appeared to be a simple solution for the 15 users, however I quickly realized that for the other 150 accounts their full email address was now showing up as the display name when they sent emails out because the Simple Display Name is blank for them. 

    My expectation was that nothing would change unless there was a value in the Simple Display Name but that is wrong.

    So, finally to my question.  Is there a way to only apply the "useSimpleDisplayName" to a subset of users?  Or, any other way to get around the situation I'm in other than entering the names for those 150 users?


    • Edited by ade333 Thursday, February 23, 2012 7:22 PM
    Thursday, February 23, 2012 7:18 PM

Answers

  • Why not renaming the accounts to the same name and only change the alias of the user? It is possible to have multiple accounts with the same name as long as the alias is different. Within AD the same situation, display name can be the same as long as the logon name is different. You could specify the company field to distinguish the user accounts.

    Regards,

    Bart Timmermans


    KPN Consulting - Technical Consultant www.bart-timmermans.nl Mark as Answer, if it is answer for your Question. Vote as Helpful, if it is helpful to you.

    • Marked as answer by ade333 Tuesday, February 28, 2012 6:33 PM
    Thursday, February 23, 2012 8:28 PM
  • Right, I don't see any other method except using a ps script and running a task schedule to routinely run it. For example you can set all your mailboxes once a day to set all mailboxes simpledisplayname to use the displayname.

    Get-Mailbox | ForEach-Object -process {Set-Mailbox -simpledisplayname ($_.Displayname -Replace(" ","."))}

    Then run another scheduled task

    get-mailbox -filter { (Alias -like "*rkc")} |{Set-Mailbox -simpledisplayname:$null}

    Or you can come up with your method with similar idea. If you're handy with PS scripting you can write a more intelligent single script that will set the display name to the displayname for all users but exclude your rkc users.


    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    • Marked as answer by ade333 Tuesday, February 28, 2012 6:34 PM
    Friday, February 24, 2012 3:39 PM

All replies

  • Why not renaming the accounts to the same name and only change the alias of the user? It is possible to have multiple accounts with the same name as long as the alias is different. Within AD the same situation, display name can be the same as long as the logon name is different. You could specify the company field to distinguish the user accounts.

    Regards,

    Bart Timmermans


    KPN Consulting - Technical Consultant www.bart-timmermans.nl Mark as Answer, if it is answer for your Question. Vote as Helpful, if it is helpful to you.

    • Marked as answer by ade333 Tuesday, February 28, 2012 6:33 PM
    Thursday, February 23, 2012 8:28 PM
  • I do not believe you can restrict or narrow this down to just a set of users.  The intent of the command is to set the communications to a particular domain, or in the case of the default setup, all domains.  I would modify all the users simple display names to match their regular display name.  Let me know if you need a script for that.


    JAUCG

    Thursday, February 23, 2012 11:10 PM
  • Agree with JAUCG, The settings for remote domains are global configuration settings for the Exchange organization.

    Configure Remote Domain Properties

    http://technet.microsoft.com/en-us/library/bb124931.aspx

     

    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.


    Frank Wang

    TechNet Community Support

    Friday, February 24, 2012 8:20 AM
  • Thanks Bart - this would work but the problem then becomes how do users distinguish between the two identical names in the GAL?   Is there a way I could edit the display in the GAL to add the (RKC) for only those 15 users?
    Friday, February 24, 2012 2:26 PM
  • Hi JAUCG,

    Thanks for the response.  Would the script you are referring to be an exchange cmdlet that would auto apply to all new users that were created, or would I have to run the script every time?  I am looking for a way to avoid extra steps when creating users as there are many admins and having all of them remember to do this would be tough.

    Friday, February 24, 2012 2:29 PM
  • Right, I don't see any other method except using a ps script and running a task schedule to routinely run it. For example you can set all your mailboxes once a day to set all mailboxes simpledisplayname to use the displayname.

    Get-Mailbox | ForEach-Object -process {Set-Mailbox -simpledisplayname ($_.Displayname -Replace(" ","."))}

    Then run another scheduled task

    get-mailbox -filter { (Alias -like "*rkc")} |{Set-Mailbox -simpledisplayname:$null}

    Or you can come up with your method with similar idea. If you're handy with PS scripting you can write a more intelligent single script that will set the display name to the displayname for all users but exclude your rkc users.


    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    • Marked as answer by ade333 Tuesday, February 28, 2012 6:34 PM
    Friday, February 24, 2012 3:39 PM
  • James is right on the scheduling, this is the way some of these tasks are handled. Let us know if you need help with the PowerShell scripting.

    JAUCG

    Friday, February 24, 2012 4:29 PM
  • Hi ade333,

    Any updates?


    Frank Wang

    TechNet Community Support

    Tuesday, February 28, 2012 2:05 AM
  • Hi Frank,

    Side tracked... still looking for a way to distinguish the name in the GAL, but my originial question was answered and I've marked it as such

    Thanks to all of you


    • Edited by ade333 Tuesday, February 28, 2012 6:37 PM
    Tuesday, February 28, 2012 6:36 PM