Chat now with support
Chat with Support

Power365 Current - Help Center

Help Center Home Power365 Platform Tenant-to-Tenant Directory Sync Migration for Active Directory Support

GET-USERHISTORY.PS1

# GET-USERHISTORY.PS1

# Binary Tree Inc

# Sept 2019

# Disclaimer: This example script is shared freely without warranty or support. It is only intended to provide guidance by example to project administrators.

# Get Power365 Users by synced state and return their sync and cutover state

# Get all users that have successfully completed their cutover.

$COUsers = @()

$COUsers = get-btuser -Filter "MigrationState -eq 'Complete'" | select userid, primarysmtpaddress, wavename, OdbServicePlan,OdbQuota,OdbSize,TargetOdbSize,TargetMailboxSize,MailboxServicePlan,MailboxSize,ArchiveSize,LitigationHoldEnabled

foreach ($COUser in $COUsers){

# Display Users

$name = $COUser.primarysmtpaddress

$wave = $COUser.wavename

$ODBService = $CoUser.OdbServicePlan

$ODBSize = $CoUser.OdbSize

$MBXService = $CoUser.MailboxServicePlan

$MBXSize = $CoUser.MailboxSize

$ARCSize = $CoUser.ArchiveSize

$LitHold = $CoUser.LitigationHoldEnabled

 

# $ODBQuota = $CoUser.OdbQuota

write-host "User: $name " -ForegroundColor Yellow

write-host "Wave: $wave " -ForegroundColor Yellow

write-host "MBX Plan: $MBXService " -ForegroundColor Yellow

write-host "ODB Plan: $ODBService " -ForegroundColor Yellow

write-host "MBX Size:" ([Math]::Round(($MBXSize / 1.0GB),4)) "GB" -ForegroundColor Yellow

write-host "ODB Size:" ([Math]::Round(($ODBSize / 1.0GB),4)) "GB" -ForegroundColor Yellow

write-host "Archive Size:" ([Math]::Round(($ARCSize / 1.0GB),4)) "GB" -ForegroundColor Yellow

write-host "Lit Hold: $LitHold " -ForegroundColor Yellow

# write-host "ODB Quota: $ODBQuota " -ForegroundColor Yellow

 

# Get user's Sync job history and state

$users_sync = @()

$users_sync = Get-BTSync -User $COUser

 

# Display Results

$users_sync | Format-Table SyncState,SyncDataType,Started,Completed,PercentComplete,TotalTimeSeconds,ItemsCopied,ItemsSkipped,ItemsFailed,@{label = 'Copied(GB)';expression={[Math]::Round(($_.BytesCopied / 1.0GB),2)}},@{label = 'Skipped(GB)';expression={[Math]::Round(($_.BytesSkipped / 1.0GB),2)}},@{label = 'Failed(GB)';expression={[Math]::Round(($_.BytesFailed / 1.0GB),2)}},DownloadRateGB,UploadRateGB,SyncJobId -AutoSize -Wrap

 

# Get user's cutover job history and state

$users_sync = @()

$users_sync = Get-BTCutover -User $COUser

# Display Results

$users_sync |Format-Table CutoverState,DSCutoverState,Started,Completed,PercentComplete,TotalTimeSeconds,CutoverJobId -AutoSize -Wrap

 

}

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating