Diary of an IT Guy #AnakBinus

Build Bridges, not Walls. Collaboration Forever!

Stuck Migration IMAP Dari Gmail ke Office 365: Remove Migration Batch

leave a comment »

Mau migrasi email via IMAP G-Suite ke Office 365 dengan menggunakan cara ini tapi ternyata gagal gara-gara setting gmail belum set less secure app.Akhirnya harus ke powersheel untuk hapus Migration batch-nya.
Ini adalah caranya. Ref: https://gcits.com/knowledge-base/troubleshooting-office-365-imap-migrations-from-google-apps/

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\WINDOWS\system32> $UserCredential = Get-Credential cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters:
Credential
PS C:\WINDOWS\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
PS C:\WINDOWS\system32> Import-PSSession $Session -DisableNameChecking

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.0 tmp_egpesa4g.1z1 {Add-AvailabilityAddressSpace, Add-DistributionGroupMember...
PS C:\WINDOWS\system32> Get-MigrationBatch

Identity Status Type TotalCount
-------- ------ ---- ----------
ListPasswdMigrasiSnD_batch1 SyncedWithErrors IMAP 9
ListPasswdMigrasiSnD_rev3 Stopped IMAP 8

PS C:\WINDOWS\system32> Remove-MigrationBatch -Identity ListPasswdMigrasiSnD_rev3

Confirm
Are you sure you want to perform this action?
Remove the migration batch "ListPasswdMigrasiSnD_rev3"?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
PS C:\WINDOWS\system32> Remove-MigrationBatch -Identity ListPasswdMigrasiSnD_batch1

Confirm
Are you sure you want to perform this action?
Remove the migration batch "ListPasswdMigrasiSnD_batch1"?
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
PS C:\WINDOWS\system32> Get-MigrationBatch

Identity Status Type TotalCount
-------- ------ ---- ----------
ListPasswdMigrasiSnD_batch1 Removing IMAP 1

PS C:\WINDOWS\system32>Remove-PSSession $Session

Written by isal

14 Desember 2019 pada 23:33

Ditulis dalam cloud, Office 365

Tagged with , ,

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d blogger menyukai ini: