Site icon Franky's Web

Exchange 2016: AuditStorageState could not be converted to the AuditStorageState type

Today a mailbox on Exchange 2016 greeted me with the following error message:

Here is the exact wording of the message:

Das Objekt „frankysweb.de/Benutzer/NoReply“ wurde beschädigt oder ist mit Microsoft-Supportanforderungen nicht kompatibel und befindet sich in einem inkonsistenten Zustand. Folgender Überprüfungsfehler:


Die Eigenschaft AuditStorageState konnte nicht in den Typ AuditStorageState konvertiert werden. Fehler beim Konvertieren der Zeichenfolge ‚ ‚ in den Ergebnistyp Microsoft.Exchange.Data.Directory.Recipient.AuditStorageState: Fehler bei Konvertierung wegen ungültigem Enumerationswert. Geben Sie einen der folgenden Enumerationswerte an, und versuchen Sie es erneut. Die möglichen Enumerationswerte sind „None, Online, Offline“.

Settings could no longer be made via ECA and this error message appeared with almost every setting for the relevant mailbox.

The cause of the error message was a space for the AD attribute "msExchExtensionAttribute45":

After I deleted the space, the error message disappeared:

Interestingly, other but not all mailboxes also had a space in the msExchExtensionAttribute45 attribute, I have not yet been able to clarify exactly why this occurs in some mailboxes.

To search for all problematic accounts with spaces in the msExchExtensionAttribute45 attribute, the following command can be used (Active Directory module for Windows PowerShell):

Get-ADUser -Filter * -Properties msExchExtensionAttribute45 | where {$_.msExchExtensionAttribute45 -match " "}

To clear the attribute, the command can be extended as follows:

Get-ADUser -Filter * -Properties msExchExtensionAttribute45 | where {$_.msExchExtensionAttribute45 -match " "} | Set-ADUser –clear "msExchExtensionAttribute45"
Exit mobile version