Forum Discussion
Problem with PST Import request commands
- Apr 06, 2017
I have found the issue. The TechNet articles conserning the Remove, Set, and Suspend-MailboxImportRequest commands are incorrect when regarding Exchange Online, maybe not for on-premise servers though.
The parameter of Identity is said to need the <alias>\<name>. Those do not work for the Identity. You have to drill down into the -- Get-MailboxImportRequest <mailbox> | fl -- in order to get the RequestGuid for each PST that is uploading. Once you have the RequestGuid, use it with the Identity parameter for the Remove, Set or Suspend, and the you are able to do what you need. (The RequestGuid is also needed for the Get-MailboxImportRequestStatistics command's Identity parameter.) The -RequestGuid and -RequestQueue parameters are not available in Exchange Online.
In my case, I want to remove the completed requests, so the command I used that works is the following: Get-MailboxImportRequest -Status Completed | % {Remove-MailboxImportRequest $_.RequestGuid}
The other commands will work this way as well.
Again, on-premise for Exchange 2013 the TechNet article works as stated. I would assume for 2016 as well. But connecting to Exchange Online, it is not correct. Just remember to get the RequestGuid and use it for the Identity on the other commands.
Jason.
I have found the issue. The TechNet articles conserning the Remove, Set, and Suspend-MailboxImportRequest commands are incorrect when regarding Exchange Online, maybe not for on-premise servers though.
The parameter of Identity is said to need the <alias>\<name>. Those do not work for the Identity. You have to drill down into the -- Get-MailboxImportRequest <mailbox> | fl -- in order to get the RequestGuid for each PST that is uploading. Once you have the RequestGuid, use it with the Identity parameter for the Remove, Set or Suspend, and the you are able to do what you need. (The RequestGuid is also needed for the Get-MailboxImportRequestStatistics command's Identity parameter.) The -RequestGuid and -RequestQueue parameters are not available in Exchange Online.
In my case, I want to remove the completed requests, so the command I used that works is the following: Get-MailboxImportRequest -Status Completed | % {Remove-MailboxImportRequest $_.RequestGuid}
The other commands will work this way as well.
Again, on-premise for Exchange 2013 the TechNet article works as stated. I would assume for 2016 as well. But connecting to Exchange Online, it is not correct. Just remember to get the RequestGuid and use it for the Identity on the other commands.
Jason.