User Tools

Site Tools


programmazione:migrazione_mailbox_via_powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
programmazione:migrazione_mailbox_via_powershell [ 4/01/2023 06:39] – created lrosaprogrammazione:migrazione_mailbox_via_powershell [20/05/2023 05:44] (current) – [Iniziare la migrazione] lrosa
Line 2: Line 2:
  
 Comandi che possono tornare utili. Comandi che possono tornare utili.
 +
 +=====Vedere tutta la foresta=====
 +<code powershell>Set-AdServerSettings -ViewEntireForest $true -PreferredGlobalCatalog domain.controller.fqdn.local</code>
  
 =====Iniziare la migrazione===== =====Iniziare la migrazione=====
 <code powershell>New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest <code powershell>New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest
 New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest -SkipMoving:FolderRestrictions</code> New-MoveRequest -Identity 'identity' -TargetDatabase "EXCHANGEDB" -Priority Highest -SkipMoving:FolderRestrictions</code>
 +
 +Per copiare i dati fino al 95% e tenere il target in sync aggiungere ''-SuspendWhenReadyToComplete'' e poi finalizzare con ''Resume-Moverequest''
  
 =====Controllare le migrazioni===== =====Controllare le migrazioni=====
 <code powershell>Get-MoveRequest | Get-MoveRequeststatistics |FT DisplayName,StatusDetail,TotalMailboxSize,PercentComplete,BytesTransferred <code powershell>Get-MoveRequest | Get-MoveRequeststatistics |FT DisplayName,StatusDetail,TotalMailboxSize,PercentComplete,BytesTransferred
 Get-MoveRequest -movestatus completed | remove-moverequest -Confirm:$false Get-MoveRequest -movestatus completed | remove-moverequest -Confirm:$false
-Get-MoveRequest "Identity" | Get-MoveRequestStatistics -IncludeReport | fl | more</code>+Get-MoveRequest "Identity" | Get-MoveRequestStatistics -IncludeReport | fl | more 
 +Get-MoveRequest -Identity  "Identity" | Set-MoveRequest -BadItemLimit 50 
 +Resume-MoveRequest -Identity 'Identity' 
 +</code> 
 + 
 +=====Cancellare la migrazione===== 
 +<code powershell>Remove-MoveRequest -Identity "identity"</code> 
 + 
 +=====Chi è rimasto su un database?===== 
 +<code powershell>Get-Mailbox -Database EXCHANGEDB</code> 
 + 
 +=====Dettagli delle mailbox===== 
 +<code powershell>Get-Mailbox -Identity Identity| FT DisplayName,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota,UseDatabaseQuotaDefaults 
 +Get-Mailbox -ResultSize Unlimited | Select-Object Name,whenMailboxCreated | Sort-Object whenMailboxCreated -Descending 
 +</code> 
 + 
 + 
  
programmazione/migrazione_mailbox_via_powershell.1672814378.txt.gz · Last modified: 4/01/2023 06:39 by lrosa