PoshCode Archive  Artifact Content

Artifact 178b7cd62216afd0b426f1de4b1c750668bb87399df00c6a3c778afd48107691:

  • File export-migrations.ps1 — part of check-in [9a185a7d5f] at 2018-06-10 13:58:24 on branch trunk — export all mailbox migration stats. (user: steve size: 620)

# encoding: ascii
# api: powershell
# title: export migrations
# description: export all mailbox migration stats.
# version: 0.1
# author: steve
# license: CC0
# x-poshcode-id: 5645
# x-archived: 2015-02-17T17:51:52
# x-published: 2015-12-15T16:27:00
#
#
$Migrations = get-moverequest

foreach ($migration in $migrations) {Get-MoveRequestStatistics $migration.alias -IncludeReport | select displayname,status,starttimestamp,completiontimestamp,overallduration,totalmailboxsize,totalmailboxitemcount} | export-csv -Delimiter ';' -NoTypeInformation -Force -Path 'C:\Users\Tester\Desktop\Migrationstats.csv'