Solved

Removing mailbox export requests

Posted on 2013-12-06
2
4,227 Views
Last Modified: 2013-12-06
Been pulling what little hair out trying to get this command to work in exchange 2013.

Background; this command "Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest" used to work under exchange 2010. Since I've migrated my mailboxes to exchange 2013 this command no longer works. I'm receiving the following error(s);
-------------------------------------------------------------------

[PS] E:\Scripts\projects>Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest
Cannot process argument transformation on parameter 'Identity'. Cannot convert value
"00000000-0000-0000-0000-000000000000" to type
"Microsoft.Exchange.Management.RecipientTasks.MailboxExportRequestIdParameter". Error: "This IdParameter cannot find
an object of the specified type.
Parameter name: identity"
    + CategoryInfo          : InvalidData: (hoodview.fcu/TexPart Journal\:PSObject) [Remove-MailboxExportRequest],

Par
   ameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MailboxExportRequest
    + PSComputerName        : taz.hoodview.fcu

Cannot process argument transformation on parameter 'Identity'. Cannot convert value
"00000000-0000-0000-0000-000000000000" to type
"Microsoft.Exchange.Management.RecipientTasks.MailboxExportRequestIdParameter". Error: "This IdParameter cannot find
an object of the specified type.
Parameter name: identity"
    + CategoryInfo          : InvalidData: (hoodview.fcu/TexPart Journal\:PSObject) [Remove-MailboxExportRequest],

Par
   ameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MailboxExportRequest
    + PSComputerName        : taz.hoodview.fcu

Cannot process argument transformation on parameter 'Identity'. Cannot convert value
"00000000-0000-0000-0000-000000000000" to type
"Microsoft.Exchange.Management.RecipientTasks.MailboxExportRequestIdParameter". Error: "This IdParameter cannot find
an object of the specified type.
Parameter name: identity"
    + CategoryInfo          : InvalidData: (hoodview.fcu/TexPart Journal\:PSObject) [Remove-MailboxExportRequest],

Par
   ameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Remove-MailboxExportRequest
    + PSComputerName        : taz.hoodview.fcu
--------------------------------------------------
These are the export requests so far.

Name                                           Mailbox                                        Status
----                                           -------                                        ------
                                               hoodview.fcu/TexPart Journal                   Completed
                                               hoodview.fcu/TexPart Journal                   Completed
                                               hoodview.fcu/TexPart Journal                   Completed

I don't know where to turn at this point.
0
Comment
Question by:RichardPWolf
2 Comments
 
LVL 30

Accepted Solution

by:
renazonse earned 500 total points
ID: 39701932
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

Is the correct syntax but if these are export requests that were generated from a 2010 server you may need to run the command from the 2010 server. It doesn't look like it's pulling the correct GUID for the request so it fails.

If you can find the correct GUID for each request you should be able to remove it with something like this - Remove-MailboxExportRequest -RequestQueue MBXDB01 -RequestGuid 25e0eaf2-6cc2-4353-b83e-5cb7b72d441f
0
 

Author Closing Comment

by:RichardPWolf
ID: 39701973
Thank you, problem primarily is that I was running the command from a remote session on my desktop. When I ran it from the Exch2010 box I got a resource not available error. When I ran it on the Exch2013 box it completed correctly. Looks like I need to fix my exchange shell on my desktop to run the command. This command is part of an End of Month script I use for exchange maintenance.
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange, script 6 55
OUTLOOK, KERBERO, NTLM 1 27
memory size used for Exchange email used on Andriod 3 22
Outlook 2010 Security Alert when opening Outlook 4 27
Utilizing an array to gracefully append to a list of EmailAddresses
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now