Ошибка создания рекламного аккаунта для имен/адресов, имеющих буквенно-цифровые символы
While performing queries against Active Directory Domain Services using one of the .NETs’ reference/namespace i.e., System.DirectoryServices, we are unable to create AD account containing numeric(s) in Display Name or Email Address. It’s a 2 step process, creating the mailbox and then updating all the other attributes. While creating the mailbox we are not getting any error, however while updating the attributes to the same mailbox we are getting an custom error as mailbox / sAMAccountName doesn’t exist. We are using the same DC throughout the code. Moreover, the code is working fine if the proposing display name and email address doesn’t have numeric(s). Since the Exchange 2016 servers have been upgraded to CU8, we are facing this issue. We are using the .NET code instead of Exchange to avoid manual intervention. It’s integrated with other systems to auto generate the mail boxes and AD accounts. It’s a 2 step process because we can’t pass all the other attributes to the New-Mailbox cmdlet. Once the mailbox gets created, we are updating it with the other attributes. In Event Viewer, the object was created, modified & finally deleted. The deletion is happening automatically which is exceptional. Let’s know, if you can share sample .NET code snippet / EWS / ADWS where we can use for automating the mail box c& AD account management. Your helps are highly appreciated. Thanks in Advance. Regards, Kiran.
Что я уже пробовал:
Существующий код прекрасно работает без цифр в имени или адресе электронной почты.
Тот же код прекрасно работал с числами в имени или адресе электронной почты до обновления серверов Exchange 2016 до CU8.