Удаление MailboxImportRequest через ADSI
https://learn.microsoft.com/en-us/archive/msdn-technet-forums/bc443947-6163-42f4-af3e-4f23fcfa0d9d
Unable to remove Mailbox Export Requests
Question
Wednesday, March 14, 2018 2:33 PM
Gang,
I've run into a bit of spot where I can't seem to remove some mailbox export requests. A couple of things:
1. The mailboxes for these requests no longer exist, nor does the AD user
2. I ran into this trying to remove a mailbox database that the mailboxes existed on before they were removed
When I run "Get-MailboxExportRequest | % {Remove-MailboxExportRequest -RequestGuid $_.RequestGuid -RequestQueue $_.RequestQueue -Confirm:$false}" I get the error "MailboxGuid must not be empty".
I also ran "Get-MailboxExportRequest | Remove-MailboxExportRequest -Confirm:$false -Force" and it gave me the same error.
When I look at the properties of the mailbox export request, I don't even see that property. Can somebody enlighten me? I'm sure I'm missing something simple.
All replies (3)
Thursday, March 15, 2018 7:08 AM ✅Answered | 1 vote
Hello,
Thanks for contacting our forum. It’s recommended to use the ADSIEdit to delete with the steps below:

Hope it helps.
Best Regards,
Jason Chao
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.
Friday, March 16, 2018 3:14 AM
That did indeed do the trick, thanks!
Monday, November 12, 2018 6:21 PM
Will this cause any issues with accounts that still exist? Also will this work for Import Requests as well.
Удаление «зависших» или «осиротевших» запросов MailboxImportRequest (или MailboxExportRequest) через ADSI Edit обычно требуется, когда стандартный командлет Remove-MailboxImportRequest в PowerShell возвращает ошибку (например, «object could not be found»), но при этом Exchange не позволяет удалить почтовую базу данных, ссылаясь на наличие активных запросов. [1, 2]
- Откройте консоль ADSI Edit (
adsiedit.msc) от имени Администратора домена. - Кликните правой кнопкой мыши по корневому элементу ADSI Edit в левой панели и выберите Connect to... (Подключиться к...).
- В окне настроек подключения в поле Select a well known Naming Context выберите Configuration (Конфигурация) и нажмите OK.
- В левой панели разверните следующую ветку дерева Active Directory:text
CN=Configuration,DC=<ваш_домен>,DC=<зона> └─CN=Services └─CN=Microsoft Exchange └─CN=<Название_Организации_Exchange> └─CN=Administrative Groups └─CN=Exchange Administrative Group (FYDIBOHF23SPDLT) └─CN=Databases └─CN=<Имя_Вашей_Почтовой_Базы> - Внутри контейнера вашей базы данных найдите подконтейнер CN=MailboxImportRequests (или аналогичный для экспорта).
- В правой части окна вы увидите список объектов зависших запросов (они будут иметь имена вида
CN=MailboxImport...или содержать GUID). - Найдите проблемный запрос, нажмите по нему правой кнопкой мыши и выберите Delete (Удалить).
- В ADSI Edit подключитесь к Default Naming Context (Контекст именования по умолчанию).
- Найдите целевого пользователя, в ящик которого выполнялся импорт.
- Откройте его Properties (Свойства).
- Перейдите на вкладку Attribute Editor и найдите атрибуты, начинающиеся с
msExchMailboxMove...илиmsExchMailboxImport...(например,msExchMailboxMoveFlags,msExchMailboxMoveStatus).
Комментарии
Отправить комментарий