kai91 Posted July 6, 2012 Posted July 6, 2012 Can anyone help me, i am trying to create users mailboxes by there display name is Exchange 2007 instead of their username? Thanks
old_n07 Posted July 6, 2012 Posted July 6, 2012 Is it that you want the name to be Joe Bloggs in the GAL rather than joe.bloggs even though the email address is [email protected]?
kai91 Posted July 6, 2012 Author Posted July 6, 2012 At current the user mailbox is created from there username for example username is 03lastnamef so their email would be [email protected] but we want to change our usernames to student id's such as s0150592 but have the mail boxes created with [email protected]
old_n07 Posted July 6, 2012 Posted July 6, 2012 If you are using powershell to create the accounts you can do something like $user = Get-ADUser some.user $name = $user.GivenName + "." + $User.Surname Enable-mailbox -Identity $user.SAMAccountName -Alias $name I haven't tested the above but we use something similar pulling the variable from an input page when creating staff accounts. This link explains the enable mailbox PS command You will need to check for duplicates when using first.lastname email addresses too
bart21 Posted July 6, 2012 Posted July 6, 2012 (edited) you can create an email address policy to do this as standard, think the option would be %g.%[email protected] etc cant remember the PS off the top of my head nick Edited July 6, 2012 by bart21
Arthur Posted July 7, 2012 Posted July 7, 2012 As already mentioned above, create an e-mail address policy. I created ours via PowerShell because we wanted the e-mail address to be in lowercase... New-EmailAddressPolicy -Name 'Default E-mail Policy' -EnabledEmailAddressTemplate 'SMTP:%rAa%rBb%rCc%rDd%rEe%rFf%rGg%rHh%rIi%rJj%rKk%rLl%rMm%rNn%rOo%rPp%rQq%rRr%rSs%rTt%rUu%rVv%rWw%rXx%rYy%rZz%1g%[email protected]' -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (Company -eq 'School Name'))} ^ E-mail address format = ForenameInitialSurname@school.county.sch.uk
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now