question

HamzehSmadi-5945 avatar image
0 Votes"
HamzehSmadi-5945 asked ShahirThottathil-7311 answered

WARNING: The object "AD Account" has been corrupted, and it's in an inconsistent state. The following validation errors happened:

The following validation errors happened: WARNING: The property value username is invalid. The value can contain only 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '"', ''', '(', ')', '+', ',', '-', '.', '/', ':', '?', ' '. i can't retrive the mailbox by issuing get-mailbox -identity ..... , even if you try to get-user "......" the same error will appear .

office-exchange-server-administrationwindows-active-directoryoffice-exchange-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EricYin-MSFT avatar image
0 Votes"
EricYin-MSFT answered EricYin-MSFT commented

Hi,
Try renaming the user :
1 Exchange command:

 Set-mailbox username -Name user1 -Displayname user1

2 Find the user in ADUC- ex.domain.com-Users, click property and rename the invalid value, here is an example:
81416-3.png




If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



3.png (13.8 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello EricYin-MSFT ,
Thank you for you suggestion , I have tried to change the displayname , but I don't need to change the alias , the smtp is used , i have tried even to login by the user and send emails from that user and everything in working ok .

but what I'am receving from the Exchange is strange , even i i have checked the smtp for the user to check if it is vaild the mail classs , nothing is wrong .

check smtp string if it is vaild or not :
$string = 'xy_s5@abc.net'

if ($string -as [System.Net.Mail.MailAddress])
{
Write-Host "Good Email Address"
}
else
{
Write-Host "Bad Email Address"
}

0 Votes 0 ·

Hi,
You may also check the login name in ADUC- ex.domain.com-Users-property -Account, is it also valid?
If you can't find a solution, recreate the mailbox by:
1 export the mailbox into pst file
2 delelte the mailbox
3 create a new mailbox with same name
4 import the pst file into the new mailbox

0 Votes 0 ·

Hi EricYin ,

I have checked them all , and i have checked the OU of the user by using IdFix , there is no issues reported .

i think the issue is the users itself not the mailbox , if you tried to get-user from the domain controller , you will have
the above message , so before exporting and creating new mailbox , I need to check the user account itself first .

Do you recommend to use any available tool (scanning ) to check the all user properties like IDfix for example .

to be honest with you I don't need to delete the mailbox , and then create another one and after that i will discover the issue is not the mailbox it is a user account .

0 Votes 0 ·
Show more comments
ShahirThottathil-7311 avatar image
0 Votes"
ShahirThottathil-7311 answered

have you fixed the issue?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.