====== Migrazione di mailbox exchange via PowerShell ======
Comandi che possono tornare utili.
=====Vedere tutta la foresta=====
Set-AdServerSettings -ViewEntireForest $true -PreferredGlobalCatalog domain.controller.fqdn.local
=====Iniziare la migrazione=====
New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest
New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest -SkipMoving:FolderRestrictions
Per copiare i dati fino al 95% e tenere il target in sync aggiungere ''-SuspendWhenReadyToComplete'' e poi finalizzare con ''Resume-Moverequest''
=====Controllare le migrazioni=====
Get-MoveRequest | Get-MoveRequeststatistics |FT DisplayName,StatusDetail,TotalMailboxSize,PercentComplete,BytesTransferred
Get-MoveRequest -movestatus completed | remove-moverequest -Confirm:$false
Get-MoveRequest "Identity" | Get-MoveRequestStatistics -IncludeReport | fl | more
Get-MoveRequest -Identity "Identity" | Set-MoveRequest -BadItemLimit 50
Resume-MoveRequest -Identity 'Identity'
=====Cancellare la migrazione=====
Remove-MoveRequest -Identity "identity"
=====Chi รจ rimasto su un database?=====
Get-Mailbox -Database EXCHANGEDB
=====Dettagli delle mailbox=====
Get-Mailbox -Identity Identity| FT DisplayName,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,UseDatabaseQuotaDefaults
Get-Mailbox -ResultSize Unlimited | Select-Object Name,whenMailboxCreated | Sort-Object whenMailboxCreated -Descending