Exchange Reports

The below script is what i will be using to migrate mailboxes from a source to the target domain, and it works correctly. The question i have is, is there a switch or anything I can add that will write results to a text file. I would like to know what successfully moved and what may have failed.
$hdusers = import-csv c:\hdusers.csv
Foreach ($user in $hpusers){
New-MoveRequest –Identity $ –Remote –RemoteHostName “” –TargetDatabase Datbase21 –RemoteGlobalCatalog –RemoteCredential $remote –TargetDeliveryDomain
LVL 25
timgreen7077Exchange EngineerAsked:
Who is Participating?

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

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.

Amit KumarCommented:
I think there is no need to write output for this command. As you can see all move requests in Exchange 2010 Console --- recipient Configuration --- Move Requests.

Even If you want to monitor particular request then click on it and see the logs.

In case you want to monitor queue from EMS then use Get-MoveRequest command. Article for this as mentioned.

Above solution is given with assumption that you are running Exchange Server 2010 or later.
timgreen7077Exchange EngineerAuthor Commented:
Right but there will be about 1000 users and EMS will not show all these. only so many will be on the screen and you can't scroll through all in the EMS. That is why i would like to export results to text file.
Amit KumarCommented:
ok, in that case you can use below

Get-MoveRequest -ResultSize "unlimited" | export-csv c:\moverequest.csv

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
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

From novice to tech pro — start learning today.