# Move Request Information Report

**URL:** <https://forums.powershell.org/t/move-request-information-report/13413>\
**Category:** PowerShell Help\
**Created:** [November 13, 2019, 10:40am UTC](https://forums.powershell.org/t/move-request-information-report/13413 "2019-11-13T10:40:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jschoebs](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jschoebs](https://forums.powershell.org/u/jschoebs)\
**Post date:** [November 13, 2019, 10:40am UTC](https://forums.powershell.org/t/move-request-information-report/13413/1 "2019-11-13T10:40:27Z")

</div>

I am in progress of migrating users from EX2010 to O365. I am looking for creating a report which includes who created the migration batch.

For example I want to insert CreatedBy into the following script:

Get-MoveRequest -resultsize unlimited | Where-Object {$\_.status -eq “Completed”} | Get-MoveRequestStatistics | select DisplayName,RemoteHost,StatusDetail, \*Size, _Percent_ | ft

If I connect to the Exchange admin center \> Recipients \> Migration. Under Statistics I see a Created by: field.

I can find this information inside Get-MigrationBatch, there is a submittedbyuser field, how would I join that into the above script?

---

<div class="post-metadata">

**Author:** ![jschoebs](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jschoebs](https://forums.powershell.org/u/jschoebs)\
**Post date:** [November 13, 2019, 3:34pm UTC](https://forums.powershell.org/t/move-request-information-report/13413/2 "2019-11-13T15:34:46Z")

</div>

Well I got it to work but its ugly

`$migrations = Get-MoveRequest -resultsize unlimited | Where-Object {$_.status -eq “Completed”}`  
`foreach($migration in $migrations)`  
`{`  
`$Info = $migration | Get-MoveRequestStatistics | select DisplayName, StatusDetail, TotalMailboxSize, submittedbyuser,SMTPAddress,UserPrincipalName,Batch`  
`$batch = $migration.BatchName.Substring($migration.BatchName.IndexOf(“:”)+1,$migration.BatchName.Length-$migration.BatchName.IndexOf(“:”)-1)`  
`$Info.Batch = $batch`  
`$Info.SubmittedByUser = (Get-MigrationBatch -Identity $batch | Select submittedbyuser).submittedbyuser`  
`$mbx = Get-Mailbox -Identity $migration.Alias`  
`$Info.SMTPAddress = $mbx.PrimarySMTPAddress`  
`$Info.UserPrincipalName = $mbx.UserPrincipalName`  
`$Info `  
`}`

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:31pm UTC](https://forums.powershell.org/t/move-request-information-report/13413/3 "2024-05-16T20:31:09Z")

</div>

Closed on May 16, 2024, 8:31pm UTC


