cannot delete failed move request from powershell, can see the statistics but delete says not found...

hi all i have a failed move request that i cant delete

as seen in the code box below

i can see the statistics that it was failed but then when i try delete it it says it doesnt exist
the move request is also not visible in managment console

anybody know how i can get rid of this as i need to move the mailbox again

thanks
[PS] C:\Windows\system32>get-moverequestStatistics -MoveRequestQueue 'Mailbox Database 0435330091' -MailboxGuid 98fbbc49
-29ea-4573-99fc-c0da13964c79 -Inc

DisplayName               Status                    TotalMailboxSize          TotalArchiveSize         PercentComplete
-----------               ------                    ----------------          ----------------         ---------------
                          Failed                    2.89 GB (3,102,929,181...                          76


[PS] C:\Windows\system32>requestStatistics -MoveRequestQueue 'Mailbox Database 0435330091' -MailboxGuid 98fbbc49-29ea-45
73-99fc-c0da13964c79 -Inc
The term 'requestStatistics' is not recognized as the name of a cmdlet, function, script file, or operable program. Che
ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:18
+ requestStatistics <<<<  -MoveRequestQueue 'Mailbox Database 0435330091' -MailboxGuid 98fbbc49-29ea-4573-99fc-c0da1396
4c79 -Inc
    + CategoryInfo          : ObjectNotFound: (requestStatistics:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[PS] C:\Windows\system32>

Open in new window

LVL 1
awilderbeastAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hilal1924Commented:
Do this :

get-moverequest | Remove-moverequest

It should remove it.

Hilal
awilderbeastAuthor Commented:
this wont remove all of the remove requests will it :S
Hilal1924Commented:
Yes it will remove all requests :)

get-moverequest -MoveStatus Failed | Remove-moverequest

This will remove only the failed ones.

Hilal

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

awilderbeastAuthor Commented:
it still didnt delete it

i think i made a mess up, i deleted the user out of AD becuase the move request creates the user

i just tried creating the user again to see if that fixed it and the pre win 2000 username is already in use

ive got AD restore but theres two users with the same name in there, i have the mailbox guid but not the user guid

how can i find the user guid via the mailbox guid do you know?

thanks
Hilal1924Commented:
HI , I am afraid this is a different question. And needs to be posted seprately. However try this to find the GUID of the user:

Get-Mailbox |where {$_.ExchangeGuid -eq "98fbbc49
-29ea-4573-99fc-c0da13964c79" |Fl *
Hilal1924Commented:
Having Said that ""get-moverequest -MoveStatus Failed | Remove-moverequest""" ... This is the proper answer for THIS question.

Hilal
awilderbeastAuthor Commented:
the get mailbox command doesnt work comes back with

>>
>>
>>

is there somethign missing off it? you want me to open a new question for that code?


the get-moverequest -MoveStatus Failed | Remove-moverequest didnt work again, the users failed attempt is still there :S
Hilal1924Commented:
Get-Mailbox |where {$_.ExchangeGuid -eq "98fbbc49
-29ea-4573-99fc-c0da13964c79"} |Fl *


Sorry I had forgotten the } in the script. Try this and let me know.

Hilal
Hilal1924Commented:
Let us try this script (get-moverequest -MoveStatus Failed | Remove-moverequest) in a different way:

get-moverequest | where {$_.Status -like "failed"} | Remove-moverequest

Hilal
awilderbeastAuthor Commented:
it worked but came back with nothing


[PS] C:\Windows\system32>Get-Mailbox |where {$_.ExchangeGuid -eq "98fbbc49-29ea-4573-99fc-c0da13964c79"} |Fl *
[PS] C:\Windows\system32>
Hilal1924Commented:
Hi Did you try this Command;

get-moverequest | where {$_.Status -like "failed"} | Remove-moverequest

Hilal
awilderbeastAuthor Commented:
yeah comes back with nothing

so the failed ones have been removed?

it still wont let me copy that user acrosst though :|
says that users already has an active request :|
Hilal1924Commented:
" yeah comes back with nothing", Yes it will come back with nothing since it removes it silently.

What is the user name, I will create a script for you.

But you gotta close this one though :)

Hilal
Hilal1924Commented:
Wait for some time and when replication Ad replication sync happens it will let you move the user across. Let me know if you want me to write that command for you.

Hilal
awilderbeastAuthor Commented:
worked after a while :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.