ADManager user creation - space on the end of last name causes mailbox creation to fail

ADManager user creation - space on the end of last name causes mailbox creation to fail

Hello,

I've come across an issue whilst creating a mailbox enabled user.

If the creator enters the Last Name with a space on the end (perhaps because of a copy and paste), a full Exchange mailbox is not able to be created and a legacy mailbox is created instead.

This is because the Exchange mailbox creation script is searching for the Full Name with the space on the end. However on account creation, AD seems to remove the space and so the Full Name field doesn't have a space on the end. So the script is unable to find the account and errors out.


So a couple of questions:

Can error checking be added to text fields? We can't rely on people to not copy and paste, even if we ask them not to

Or, can the Exchange mailbox creation script be changed to remove any extra space on the end of the Full Name field before doing the account search?


Thanks in advance for any advice :)

Helen T
ManageEngine User Group New Zealand

              New to ADManager Plus?

                New to ADSelfService Plus?