2009-12-15 6 views
1

Powershell의 Export-Mailbox cmdlet을 사용하여 사서함의 두 날짜 사이에 전자 메일을 삭제할 때 문제가 있습니다. 나는이 두 날짜 사이에 가을 이메일이 알고Export-Mailbox cmdlet이 전자 메일을 삭제하지 않음

Export-Mailbox -Identity mailboxname -StartDate "01/11/2009 00:00:01" -EndDate "14/11/2009 00:00:01" -DeleteContent 

하지만 때마다 명령이 실행 및 완료되지만 오류 단계에서 발생했습니다 "의 상태 메시지를 제공합니다 : 나는 실행하고 현재 코드는 이동 오류가있는 대상 사서함 저장소에 메시지를 복사하지 못했습니다. 알 수없는 오류가 발생했습니다. "

Export-Mailbox를 사용하여 메시지를 삭제하거나 오류가 발생한 이유를 알고 있습니까?

감사합니다.

Get-Mailbox -Identity jonny | Export-Mailbox -TargetMailbox target -TargetFolder folder -EndDate "14/11/09 00:01:00" -StartDate "14/11/09 00:00:00" -DeleteContent 

이이 같은이 한 일을 다음과 같이 다윗의 도움을 사용하여 조니

~~~ 솔루션 ~~~

  • 내가 다시 명령을 실행 그 timespan에있는 3000 개 이상 전자 우편이 아니었다.

답변

1

시도 :

Get-Mailbox -Identity Jonny | Export-Mailbox -TargetMailbox mailboxname -StartDate "01/11/2009 00:00:01" -EndDate "14/11/2009 00:00:01" -DeleteContent 

사서함 내보내기를 사용하는 가장 일반적인 문제에 대한 자세한 정보를 원하시면 this를 참조하십시오

The most common problems with using Export-Mailbox are related to permissions. To use Export-Mailbox you need to be delegated the Exchange Server Administrator role, be a member of the local Administrators group for the target server, and have full access to the source and destination mailboxes. The source and destination mailboxes must be in the same Active Directory forest.

These are some common permissions-related errors:

ERROR

  • The specified mailbox database [Mailbox Database Name] does not exist

CAUSE The user running the Export-Mailbox command needs to be delegated the Exchange Administrator role for the Exchange server.

ERROR

  • Error occurred in the step: Creating target folder in the target mailbox. An unknown error has occurred., errorcode: -2147221233

CAUSE The user running the Export-Mailbox does not have full access to the destination mailbox.

ERROR

  • Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000, error code: -1056749164”

CAUSE The user running the Export-Mailbox does not have full access to the destination mailbox.

+0

안녕하세요 David, 감사합니다. 그런 식으로 해봤지만 같은 효과가 있습니다. – Jonny

+0

안녕 데이비드, 많이 놀고 난 후에 나는 그것이 일하고있어! 사용 권한은 정확했지만 이상한 점은 두 사서함에 모두 액세스 할 수 있다는 것입니다. 그러나 실패한 다른 이유는 한 번에 너무 많은 이메일을 삭제하려고 시도했기 때문입니다. 짧은 시간 (예 : 1 분) 동안 실행하면 완벽하게 작동합니다. 도움 주셔서 감사합니다. – Jonny

0

을 나는 또한 오류가 아래 얻고 있었다, 나는 다른 저장소로 원본 사서함을 이동 그것은 그 때 일했다.

•Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: MAPI or an unspecified service provider. ID no: 00000000-0000-00000000, error code: -1056749164”

+0

그건 재미 있어요. 나는 그것을 시도해 볼 수도 있습니다. 사서함 자체는 현재 그대로 자체 저장소에 있지만, 나는 이것을 줄 것입니다. – Jonny