Partilhar via


As pesquisas do Registo de Auditoria da Caixa de Correio falham com a exceção "ErrorInvalidServerVersion" no ambiente de coexistência Exchange Server 2016, 2013 e 2010

Sintomas

Considere o seguinte exemplo:

  • Tem um ambiente de coexistência do Exchange que inclui caixas de correio alojadas no Microsoft Exchange Server 2016, 2013 e 2010.
  • Move as suas caixas de correio de arbitragem para Exchange Server 2016.
  • Ativa a Auditoria de Caixa de Correio para caixas de correio alojadas no Exchange Server 2010.
  • A partir da Shell de Gestão do Exchange no Exchange Server 2016, execute o Search-MailboxAuditLog comando ou New-MailboxAuditLogSearch para procurar nos Registos de Auditoria da Caixa de Correio a caixa de correio alojada no Exchange Server 2010.

Neste cenário, a pesquisa do registo de auditoria falha.

Se executar o Search-MailboxAuditLog comando, é devolvida uma mensagem de erro na Shell de Gestão do Exchange que se assemelha ao seguinte:

The Exchange Web Services returned an error while trying to access the audit log.  Reason: '','ErrorInvalidServerVersion','The specified server version is invalid.'
     + CategoryInfo : NotSpecified: (:) [Search-MailboxAuditLog], AuditLogServiceException
     + FullyQualifiedErrorID : (Server=E2K16,RequestID=<GUID>,Timestamp=DateTime) [FailureCategory=Cmdlet-AuditLogServiceException] AF0D01B1,Microsoft.Exchange.Management.SystemConfigurationTasks.SearchMailboxAuditLog
     + PSComputerName : E2K16.contoso.com

Se executar o New-MailboxAuditLogSearch comando, não é devolvido nenhum erro na Shell de Gestão do Exchange. No entanto, o ID do Evento 4002 é registado no Visualizador de Eventos quando o servidor tenta executar a pesquisa:

Log Name:      Application

Source:        MSExchange AuditLogSearch
Date:          <DateTime>
Event ID:      4002
Task Category: General
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      E2K16.contoso.com
Description:
A runtime exception occurred in AuditLogSearchServicelet's worker while processing a request. Exception: 
Microsoft.Exchange.Data.ApplicationLogic.AuditLogServiceException: The Exchange Web Service returned an error while trying to access the audit log. Reason: '','ErrorInvalidServerVersion','The specified server version is invalid.'.
...

Causa

Este comportamento é por concepção. Se a caixa de correio de arbitragem tiver sido movida para Exchange Server 2016, as pesquisas do Registo de Auditoria da Caixa de Correio são executadas através dos Serviços Web do Exchange com um valor RequestVersion de "Exchange Server 2013". Quando este pedido é apresentado ao Exchange Server 2010, a resposta é uma exceção "ErrorInvalidServerVersion".

Resolução

Para corrigir este problema, execute o Search-MailboxAuditLog comando no Exchange Server 2010 diretamente quando procurar caixas de correio alojadas no Exchange Server 2010.