Migrating On-Prem Distribution Groups to Exchange Online in Hybrid Mode

%3CLINGO-SUB%20id%3D%22lingo-sub-27763%22%20slang%3D%22en-US%22%3EMigrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-27763%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20come%20across%20a%20number%20of%20articles%20on%20migrating%20distribution%20groups%20to%20Office%20365%20when%20you're%20not%20in%20hybrid%20mode.%20My%20situation%20is%20having%20hundreds%20of%20DLs%20on%20my%20on-prem%20Exchange%20environment%20that%20I%20need%20to%20move%20to%20the%20cloud.%20We%20don't%20want%20these%20converted%20to%20Office%20365%20groups%2C%20we%20want%20true%20distribution%20groups%20in%20the%20cloud.%20Is%20this%20possible%20with%20scripting%20or%20some%20other%20method%3F%20I%20really%20don't%20want%20to%20have%20to%20re-create%20these%20by%20hand.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-27763%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOn%20Premise%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-330486%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-330486%22%20slang%3D%22en-US%22%3E%3CP%3EAh%20the%20old%20tricks%20are%20the%20best...%20so%2C%20yes.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-330455%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-330455%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Tony.%20Would%20we%20need%20to%20add%20an%20X500%20address%26nbsp%3Bto%20the%20online%20group%20so%20DLs%20cached%20that%20are%20deleted%20in%20Outlook%20will%20be%20recognized%20as%20the%20newly%20created%20ones%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-320690%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-320690%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20should%20recreate%20the%20DLs%20in%20the%20cloud%20and%20then%20remove%20the%20on-premises%20equivalent.%20People%20often%20script%20this%20removal%20so%20that%20the%20new%20cloud%20DL%20receives%20the%20old%20email%20address%20used%20for%20the%20on-prem%20DL.%26nbsp%3B%20You%20could%20do%20it%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECreate%20the%20new%20DL%20in%20the%20cloud.%20Set%20the%20new%20DL%20to%20be%20hidden%20from%20address%20lists%20so%20no%20one%20can%20see%20it.%20Give%20it%20a%20temporary%20email%20address.%3C%2FP%3E%0A%3CP%3EAdd%20the%20members%20to%20the%20cloud%20DL.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOn-premises%2C%20update%20the%20old%20DL%20to%20give%20it%20a%20new%20email%20address%20and%20hide%20it%20from%20address%20lists.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20on-premises%20change%20synchronizes%20to%20the%20cloud%2C%20update%20the%20new%20DL%20to%20give%20it%20the%20original%20email%20address%20and%20unhide%20it%20from%20address%20lists.%20Clients%20will%20now%20see%20the%20new%20DL%20and%20begin%20using%20it.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20a%20week%20or%20so%2C%20when%20you%20are%20sure%20that%20everything%20works%20as%20expected%2C%20you%20can%20delete%20the%20old%20DL%20from%20on-premises%20AD.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEmail%20addresses%20always%20need%20to%20be%20resolvable%20before%20delivery%20can%20occur.%20Once%20you%20switch%20the%20MX%20records%2C%20the%20cloud%20DLs%20can%20be%20used.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-320249%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-320249%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20in%20order%20to%20completely%20migrate%20to%20365%20there%20is%20no%20way%20to%20move%20the%20on%20prem%20distro's%20365%20exchange%20with%20out%20creating%20new%20distro's%20in%20cloud.%20In%20other%20words%20the%20distro%20sync'd%20by%20AD%20will%20go%20away%20once%20you%20decomission%20the%20on%20prem%20exchange%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20of%20now%20if%20i%20create%20a%20distro%20in%20the%20cloud%20external%20users%20cannot%20reach%20that%20email%20group.%20(%20my%20MX%20records%20still%20point%20on%20Prem%20)%20I%20have%20a%20second%20domain%20in%20my%20365%20exchange%20which%20does%20have%20the%20mx%20records%20point%20to%20the%20365%20exchange%20and%20they%20are%20working%20fine%20so%20i%20am%20assuming%20that%20when%20i%20change%20my%20mx%20records%20to%20point%20to%26nbsp%3B%20365%20those%26nbsp%3B%20%22%20in%20cloud%22%20distro's%20will%20work%20just%20fine.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BJust%20want%20to%20ensure%20that%20i'm%20understanding%20the%20reading%20in%20this%20article%20correct%20before%20proceeding.%20I've%20got%20just%20about%20every%20mailbox%20created%20and%20will%20be%20left%20with%20room%20mail%20boxes%20and%20distro's%20to%20finish%20this%20migration.%20My%20goal%20is%20to%20decomission%20the%20on%20prem%20exchange%20server%20and%20just%20leave%20a%20mail%20relay%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229330%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229330%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20have%20a%20bunch%20of%20DLs%20on-premises%2C%20you%20will%20need%20to%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Recreate%20them%20in%20the%20cloud.%3C%2FP%3E%0A%3CP%3E2.%20Delete%20them%20on-premises.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20don't%20do%20this%2C%20you'll%20end%20up%20having%20to%20keep%20an%20on-premises%20server%20to%20manage%20the%20objects%20that%20remain%20there.%20It%20is%20easy%20enough%20to%20script%20the%20recreation%20and%20deletion%20with%20PowerShell.%20You'll%20need%20to%20have%20a%20session%20connected%20to%20both%20on-premises%20and%20the%20cloud%20when%20you%20run%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229321%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229321%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%2C%20your%20answer%20is%20quite%20old%20now%20but%20I%20have%20a%20question%20regarding%20the%20situation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20in%20a%20similar%20situation%20with%20the%20customer%20here%3A%3C%2FP%3E%3CP%3E-%20Made%20a%20hybrid%20deployment%20to%20migrate%20from%20Exchange%202010%20to%20Office%20365%3B%3C%2FP%3E%3CP%3E-%20Have%20AAD%20Connect%20(and%20ADFS)%3C%2FP%3E%3CP%3E-%20Migrated%20almost%20all%20users%20(and%20shared%20mailboxes%2C%20etc.)%3C%2FP%3E%3CP%3E-%20The%20end%20goal%20is%20to%20shut%20down%20the%20Ex10%20server%20since%20I've%20told%20%3CSTRONG%3Euninstalling%20it%20is%20a%20terrible%20idea%3C%2FSTRONG%3E.%20We'll%20be%20managing%20things%20like%20SMTP%20Addresses%20from%20the%20AD%20Attribute%20Editor.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20about%20the%20DGs%3A%20We've%20sync'ed%20them%20all%20with%20AADC.%20We%20can%20see%20them%20in%20o365%20AC%20and%20ExO%20but%20not%20manage%20them%20as%20expected.%3C%2FP%3E%3CP%3EIf%20I%20would%20like%20to%20manage%20them%20there%2C%20can%20I%20simply%20remove%20the%20DG%20OU%20from%20AADC%20Sync%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEDIT%3A%20Thinking%20about%20it%2C%20I've%20realized%20doing%20what%20I've%20described%20above%20should%20change%20the%20ID%20of%20the%20DG%20since%20it%20isn't%20a%20migrated%20object%20but%20a%20created%20one.%20Therefore%2C%20I%20suppose%20people%20who%20use%20Autocomplete%20(meaning%20everybody%20%5E%5E)%20will%20be%20screwed.%3C%2FP%3E%3CP%3EUsers%20will%20have%20to%20get%20the%20DG%20from%20the%20Online%20GAL%2C%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20answer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110079%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110079%22%20slang%3D%22en-US%22%3E%3CP%3EUse%20the%20Get-DistributionGroupMember%20to%20get%20the%20membership%20of%20the%20on-prem%20DL%20and%20then%20create%20the%20new%20DL%20inside%20Exchange%20Online%20(a%20cloud%20object)%20before%20populating%20its%20membership%20(Add-DistributionGroupMember)%20with%20the%20objects%20you%20fetched%20from%20the%20original%20DL.%20You%20can%20connect%20PowerShell%20to%20both%20the%20on-prem%20and%20cloud%20environments%20at%20the%20same%20time%2C%20so%20you%20can%20run%20these%20commands%20in%20a%20single%20session.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-109854%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-109854%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20you%20please%20elaborate%20more%20on%2C%20%22how%20to%20export%20DL%20(on-premises)%20and%20then%20create%20in%20Cloud%20using%20PowerShell%22%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-29580%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29580%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20make%20sure%20that%20I%20understand%20what%20you%20want%20to%20do%3A%20you%20have%20a%20set%20of%20DLs%20on-premises%20and%20you%20now%20want%20to%20move%20them%20to%20Exchange%20Online%20without%20changing%20any%20of%20the%20members.%20You%20don't%20want%20to%20create%20new%20Office%20365%20Groups%20based%20on%20the%20DLs%20-%20you%20just%20want%20to%20use%20the%20DLs%20as%20they%20are.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20have%20a%20hybrid%20environment%3F%20If%20so%2C%20you%20can%20use%20AADConnect%20to%20synchronize%20the%26nbsp%3Bon-premises%20DLs%20with%20AAD%26nbsp%3Bso%20that%20they%20appear%20in%20the%20cloud%20GAL.%20The%20groups%20will%20have%20to%20be%20managed%20on-premises%20because%20they%20are%20%22owned%22%20by%20that%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20don't%20want%20to%20synchronize%20the%20groups%2C%20you%20can%20recreate%20the%20DLs%20in%20the%20cloud.%20This%20is%20a%20manual%20process%20as%20there%20is%20no%20tool%20that%20I%20know%20of%20to%20move%20a%20DL%20from%20one%20environment%20to%20the%20other.%20However%2C%20it's%20easy%20enough%20to%20use%20PowerShell%20to%20export%20DL%20membership%20to%20something%20like%20a%20CSV%20file%20(on-premises)%20and%20then%20read%20that%20CSV%20file%20to%20create%20the%20DL%20in%20the%20cloud.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-467683%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-467683%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETony%2C%20thank%20you%20for%20your%20insight%20on%20this%20so%20far%20-%20I%20am%20unfamiliar%20with%20this%20last%20comment%20about%20the%20X500%20addresses.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20a%20part%20of%20this%20process%20would%20I%20want%20to%20change%20the%20existing%20X500%20address%20along%20with%20the%20DL's%20mail%20address%2C%20and%20then%20use%20those%20on%20the%20new%20Online%20DL%3F%20Or%20would%20I%20be%20creating%20a%20new%20X500%20address%20on%20the%20Online%20replacement%20DL%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-467918%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-467918%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103603%22%20target%3D%22_blank%22%3E%40Jerryn%20Bunnell%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20X.500%20address%20is%20from%20the%20old%20DL.%20Email%20sent%20to%20the%20old%20DL%20will%20have%20the%20X.500%20address%20in%20the%20header%2C%20so%20if%20you%20move%20the%20X.500%20address%20to%20the%20new%20DL%20it%20means%20that%20Exchange%20will%20be%20able%20to%20deliver%20replies%20to%20the%20messages%20sent%20to%20the%20old%20DL.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-467933%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-467933%22%20slang%3D%22en-US%22%3EAwesome%2C%20so%20I%20could%20then%20user%20PowerShell%20to%20grab%20that%20and%20the%20primary%20SMTP%20address%20and%20apply%20it%20to%20the%20new%20DG%20in%20Exchange%20Online.%3CBR%20%2F%3E%3CBR%20%2F%3EOne%20more%20for%20you%20-%20We%20have%20SMTP%20relays%20still%20connected%20on%20premises.%20If%20i%20create%20these%20DG's%20in%20Exchange%20online%2C%20will%20they%20sync%20on-premises%2C%20or%20will%20I%20need%20to%20create%20a%20mail%20object%20on%20premises%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-470138%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-470138%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F103603%22%20target%3D%22_blank%22%3E%40Jerryn%20Bunnell%3C%2FA%3E%26nbsp%3BI%20don't%20know%20how%20you%20have%20things%20set%20up%20but%20generally%20speaking%20cloud%20objects%20do%20synchronize%20back%20to%20on-premises%20AD.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772538%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772538%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%2C%20it%20may%20be%20something%20like%20that.%26nbsp%3B%20%26nbsp%3BThere%20aren't%20any%20nested%20members%20but%20as%20you%20say%20there%20might%20be%20something%20about%20them.%26nbsp%3B%20%26nbsp%3B%20I%20created%20a%20new%20group%20about%20an%20hour%20ago%2C%20it%20just%20had%202%20names%20in%20it%20but%20it%20wouldn't%20let%20me%20migrate%20it.%26nbsp%3B%20I'll%20ask%20MS%20to%20see%20if%20they%20can%20figure%20it%20out.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772552%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772552%22%20slang%3D%22en-US%22%3E%3CP%3ESee%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fadmin%2Fmanage%2Fupgrade-distribution-lists%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fadmin%2Fmanage%2Fupgrade-distribution-lists%3Fview%3Do365-worldwide%3C%2FA%3E%26nbsp%3Bfor%20more%20information...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772580%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772580%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3BThanks%20-%20that%20is%20the%20article%20I%20was%20looking%20at.%26nbsp%3B%20I%20opened%20a%20case%20with%20MS%20but%20he%20got%20distracted%20by%20something%20else.%26nbsp%3B%20%26nbsp%3BHe%20seemed%20to%20think%20since%20it%20was%20synced%20I%20shouldn't%20worry%20about%20it%20which%20might%20be%20valid%20but%20I'm%20trying%20to%20avoid%20the%20day%20that%20their%20exchange%20server%20stops%20working%20and%20it%20depends%20on%20anything%20that%20is%20on%20prem.%26nbsp%3B%20%26nbsp%3B%20I'll%20open%20another%20case.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20get%20this%20command%20to%20find%20out%20if%20it%20is%20Mastered%20on%20Premise%20or%20hosted%20in%20office%20365%3C%2FP%3E%3CP%3Eget-recipient%20-identity%20%3CEM%3Edlname%40yourdomain.com%20%7CFL%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20ones%20I'm%20upgraded%20are%20groups%20I%20created%20in%20Exchange.%26nbsp%3B%20%26nbsp%3BI%20wonder%20if%20those%20eligible%20ones%20(ones%20I%20don't%20see%20any%20of)%20are%20ones%20people%20created%20in%20their%20outlook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772511%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772511%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20reading%20an%20article%20when%20searching%20how%20to%20do%20this%20and%20it%20claimed%20if%20you%20went%20to%20office%20365%20exchange%20admin%2C%20went%20to%20groups%20and%20in%20the%20upper%20right%20clicked%20on%20upgrade%20distribution%20lists%20it%20would%20let%20you%20move%20them%20however%20when%20I%20click%20there%20it%20doesn't%20show%20any%20of%20my%20on%20prem%20DLs.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1194555%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1194555%22%20slang%3D%22en-US%22%3E%3CP%3EReading%20through%20the%20posts%20here%20is%20some%20short%20code%20as%20I%20understand%20the%20process%20of%20migrating%20an%20OnPrem%20DL%20to%20a%20Cloud%20DL%3A%3C%2FP%3E%3CP%3EOnPrem%3C%2FP%3E%3CP%3E1.%20Get%20the%20x500%20LegacyExchangeDN%20from%20the%20DL%3C%2FP%3E%3CP%3E2.%20Get%20the%20members%20of%20the%20DL%3C%2FP%3E%3CP%3E3.%20Remove%20the%20DL%3C%2FP%3E%3CP%3ECloud%3C%2FP%3E%3CP%3E1.%20Create%20the%20DL%3C%2FP%3E%3CP%3E2.%20Add%20Members%20to%20the%20DL%3C%2FP%3E%3CP%3E3.%20Add%20Alias%20x500%20equal%20to%20the%20LegacyExchangeDN%20from%20above%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1198646%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1198646%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3E%26nbsp%3BIs%20this%20still%20valid%3F%20We%20are%20in%20hybrid%20scenario%20for%20last%20few%20year%20and%20we%20have%20almost%20moved%20all%20mailbox%20and%20DL%20are%20dir%20sync.%20is%20there%20any%20better%20option%20available%20to%20move%20DL%20to%20EXO%20only%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1198822%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1198822%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F172515%22%20target%3D%22_blank%22%3E%40Bhavesh%20Shah%3C%2FA%3E%26nbsp%3B%20Nothing%20much%20has%20changed%20in%20the%20last%20few%20years.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-772530%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-772530%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F136303%22%20target%3D%22_blank%22%3E%40Boe%20Dillard%3C%2FA%3E%26nbsp%3B%20Your%20DLs%20might%20not%20meet%20the%20criteria%20for%20conversion.%20For%20example%2C%20if%20they%20have%20any%20nested%20members%2C%20you%20can't%20convert%20the%20DLs%20with%20EAC.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1390250%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1390250%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F332562%22%20target%3D%22_blank%22%3E%40djreit%3C%2FA%3E%26nbsp%3B%20I%20am%20going%20to%20try%20your%20method%20and%20see%20if%20this%20works%20for%20me.%20I'm%20at%20the%20same%20spot%20as%20everyone%20else%20on%20this%20thread.%20Please%20don't%20let%20this%20die.%20This%20is%20more%20involved%20than%20it%20seems.%20Sorry%2C%20I'm%20a%20newbie%20when%20it%20comes%20to%20MS%20Exchange%20so%20I'm%20learning%20this%20on%20the%20fly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20in%20a%20hybrid%20set%20up.%20Trying%20to%20take%20existing%20DLs%20on%20our%20on-prem%20environment%20to%20O365.%20While%20we%20aren't%20doing%20away%20with%20our%20on-prem%20environment%20any%20time%20soon%2C%20DLs%20must%20be%20in%20the%20cloud%20soon%20so%20users%20can%20have%20the%20ability%20to%20manage%20them%20again%20as%20they%20did%20prior.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnything%20learned%20since%20the%20last%20post%20is%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1390262%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1390262%22%20slang%3D%22en-US%22%3EAny%20lessons%20learned%2F%20shortcuts%2F%20better%20ways%20to%20do%20things%3F%20Definitely%20need%20assistance%20for%20sure.%20Thank%20you.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1441520%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1441520%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3EHi%20Tony%20and%20thanks%20for%20all%20the%20great%20info%20you've%20provided%20in%20this%20thread.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20getting%20ready%20to%20do%20a%20migration%20this%20weekend%20it%20looks%20like%20(have%20a%20Ex2010%20Hybrid%20%2FO365%20setup)%20and%20all%20my%20user's%20mb's%20are%20already%20up%20in%20the%20cloud%20but%20we%20have%20a%20lot%20of%20on-prem%20DG's.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20PS%20command%20to%20pull%20the%20list%20of%20users%20for%20a%20specific%20group%20and%20save%20to%20a%20CSV%3F%3C%2FP%3E%3CP%3EGet-DistributionGroupMember%20%3F%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20then%20the%20corresponding%26nbsp%3B%20PS-online%20command%20to%20create%20the%20DG%20with%20the%20CSV%20list%20of%20users%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20I%20missed%20it%20above%20but%20thanks!%3C%2FP%3E%3CP%3EJason%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1441527%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1441527%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F689553%22%20target%3D%22_blank%22%3E%40Jason-EV%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-DistributionGroupMember%20-Identity%20MyGroup%20%7C%20Select%20DisplayName%2C%20PrimarySmtpAddress%20%7C%20Export-CSV%20-NoTypeInformation%20c%3A%5Ctemp%5CDL.csv%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESomething%20like%20that...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1441570%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1441570%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64%22%20target%3D%22_blank%22%3E%40Tony%20Redmond%3C%2FA%3Egreat!%20thanks%20for%20fast%20reply!%20I'll%20give%20that%20try%20right%20now.%20By%20any%20chance%20do%20you%20know%20what%20it%20is%20for%20writing%20it%20or%20the%20Exchange%20Online%20side%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20not%20I'll%20open%20a%20case.%20Thanks%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1441585%22%20slang%3D%22en-US%22%3ERe%3A%20Migrating%20On-Prem%20Distribution%20Groups%20to%20Exchange%20Online%20in%20Hybrid%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1441585%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F689553%22%20target%3D%22_blank%22%3E%40Jason-EV%3C%2FA%3E%26nbsp%3B%20It%20works%20for%20either%20on-premises%20or%20online.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Visitor

I have come across a number of articles on migrating distribution groups to Office 365 when you're not in hybrid mode. My situation is having hundreds of DLs on my on-prem Exchange environment that I need to move to the cloud. We don't want these converted to Office 365 groups, we want true distribution groups in the cloud. Is this possible with scripting or some other method? I really don't want to have to re-create these by hand.

27 Replies
Highlighted

To make sure that I understand what you want to do: you have a set of DLs on-premises and you now want to move them to Exchange Online without changing any of the members. You don't want to create new Office 365 Groups based on the DLs - you just want to use the DLs as they are.

 

Do you have a hybrid environment? If so, you can use AADConnect to synchronize the on-premises DLs with AAD so that they appear in the cloud GAL. The groups will have to be managed on-premises because they are "owned" by that environment.

 

If you don't want to synchronize the groups, you can recreate the DLs in the cloud. This is a manual process as there is no tool that I know of to move a DL from one environment to the other. However, it's easy enough to use PowerShell to export DL membership to something like a CSV file (on-premises) and then read that CSV file to create the DL in the cloud.

Highlighted

Can you please elaborate more on, "how to export DL (on-premises) and then create in Cloud using PowerShell"? 

 

Thanks!

Highlighted

Use the Get-DistributionGroupMember to get the membership of the on-prem DL and then create the new DL inside Exchange Online (a cloud object) before populating its membership (Add-DistributionGroupMember) with the objects you fetched from the original DL. You can connect PowerShell to both the on-prem and cloud environments at the same time, so you can run these commands in a single session.

Highlighted

Hello @Tony Redmond,

 

Sorry, your answer is quite old now but I have a question regarding the situation.

 

I'm in a similar situation with the customer here:

- Made a hybrid deployment to migrate from Exchange 2010 to Office 365;

- Have AAD Connect (and ADFS)

- Migrated almost all users (and shared mailboxes, etc.)

- The end goal is to shut down the Ex10 server since I've told uninstalling it is a terrible idea. We'll be managing things like SMTP Addresses from the AD Attribute Editor.

 

Now about the DGs: We've sync'ed them all with AADC. We can see them in o365 AC and ExO but not manage them as expected.

If I would like to manage them there, can I simply remove the DG OU from AADC Sync?

 

EDIT: Thinking about it, I've realized doing what I've described above should change the ID of the DG since it isn't a migrated object but a created one. Therefore, I suppose people who use Autocomplete (meaning everybody ^^) will be screwed.

Users will have to get the DG from the Online GAL, correct?

 

Thanks in advance for your answer

Highlighted

If you have a bunch of DLs on-premises, you will need to:

 

1. Recreate them in the cloud.

2. Delete them on-premises.

 

If you don't do this, you'll end up having to keep an on-premises server to manage the objects that remain there. It is easy enough to script the recreation and deletion with PowerShell. You'll need to have a session connected to both on-premises and the cloud when you run it.

Highlighted

So in order to completely migrate to 365 there is no way to move the on prem distro's 365 exchange with out creating new distro's in cloud. In other words the distro sync'd by AD will go away once you decomission the on prem exchange? 

 

As of now if i create a distro in the cloud external users cannot reach that email group. ( my MX records still point on Prem ) I have a second domain in my 365 exchange which does have the mx records point to the 365 exchange and they are working fine so i am assuming that when i change my mx records to point to  365 those  " in cloud" distro's will work just fine. 

 Just want to ensure that i'm understanding the reading in this article correct before proceeding. I've got just about every mailbox created and will be left with room mail boxes and distro's to finish this migration. My goal is to decomission the on prem exchange server and just leave a mail relay .

 

Highlighted

You should recreate the DLs in the cloud and then remove the on-premises equivalent. People often script this removal so that the new cloud DL receives the old email address used for the on-prem DL.  You could do it like this:

 

Create the new DL in the cloud. Set the new DL to be hidden from address lists so no one can see it. Give it a temporary email address.

Add the members to the cloud DL.

 

On-premises, update the old DL to give it a new email address and hide it from address lists.

 

After the on-premises change synchronizes to the cloud, update the new DL to give it the original email address and unhide it from address lists. Clients will now see the new DL and begin using it. 

 

After a week or so, when you are sure that everything works as expected, you can delete the old DL from on-premises AD.

 

Email addresses always need to be resolvable before delivery can occur. Once you switch the MX records, the cloud DLs can be used.

 

Highlighted

Thanks Tony. Would we need to add an X500 address to the online group so DLs cached that are deleted in Outlook will be recognized as the newly created ones?

Highlighted

Ah the old tricks are the best... so, yes.

Highlighted

@Tony Redmond 

 

Tony, thank you for your insight on this so far - I am unfamiliar with this last comment about the X500 addresses.

 

As a part of this process would I want to change the existing X500 address along with the DL's mail address, and then use those on the new Online DL? Or would I be creating a new X500 address on the Online replacement DL?

Highlighted

@Jerryn Bunnell 

 

The X.500 address is from the old DL. Email sent to the old DL will have the X.500 address in the header, so if you move the X.500 address to the new DL it means that Exchange will be able to deliver replies to the messages sent to the old DL.

Highlighted
Awesome, so I could then user PowerShell to grab that and the primary SMTP address and apply it to the new DG in Exchange Online.

One more for you - We have SMTP relays still connected on premises. If i create these DG's in Exchange online, will they sync on-premises, or will I need to create a mail object on premises?
Highlighted

@Jerryn Bunnell I don't know how you have things set up but generally speaking cloud objects do synchronize back to on-premises AD.

Highlighted

@Tony Redmond 

I was reading an article when searching how to do this and it claimed if you went to office 365 exchange admin, went to groups and in the upper right clicked on upgrade distribution lists it would let you move them however when I click there it doesn't show any of my on prem DLs.

Highlighted

 @Boe Dillard  Your DLs might not meet the criteria for conversion. For example, if they have any nested members, you can't convert the DLs with EAC.

Highlighted

thanks, it may be something like that.   There aren't any nested members but as you say there might be something about them.    I created a new group about an hour ago, it just had 2 names in it but it wouldn't let me migrate it.  I'll ask MS to see if they can figure it out.

Highlighted

@Tony Redmond Thanks - that is the article I was looking at.  I opened a case with MS but he got distracted by something else.   He seemed to think since it was synced I shouldn't worry about it which might be valid but I'm trying to avoid the day that their exchange server stops working and it depends on anything that is on prem.    I'll open another case. 

 

I did get this command to find out if it is Mastered on Premise or hosted in office 365

get-recipient -identity dlname@yourdomain.com |FL

 

The ones I'm upgraded are groups I created in Exchange.   I wonder if those eligible ones (ones I don't see any of) are ones people created in their outlook.

Highlighted

Reading through the posts here is some short code as I understand the process of migrating an OnPrem DL to a Cloud DL:

OnPrem

1. Get the x500 LegacyExchangeDN from the DL

2. Get the members of the DL

3. Remove the DL

Cloud

1. Create the DL

2. Add Members to the DL

3. Add Alias x500 equal to the LegacyExchangeDN from above

Highlighted

@Tony Redmond Is this still valid? We are in hybrid scenario for last few year and we have almost moved all mailbox and DL are dir sync. is there any better option available to move DL to EXO only?

Highlighted

@Bhavesh Shah  Nothing much has changed in the last few years.

Highlighted

@djreit  I am going to try your method and see if this works for me. I'm at the same spot as everyone else on this thread. Please don't let this die. This is more involved than it seems. Sorry, I'm a newbie when it comes to MS Exchange so I'm learning this on the fly.

 

We are in a hybrid set up. Trying to take existing DLs on our on-prem environment to O365. While we aren't doing away with our on-prem environment any time soon, DLs must be in the cloud soon so users can have the ability to manage them again as they did prior.

 

Anything learned since the last post is greatly appreciated.

Highlighted
Any lessons learned/ shortcuts/ better ways to do things? Definitely need assistance for sure. Thank you.
Highlighted

@Tony RedmondHi Tony and thanks for all the great info you've provided in this thread.

 

I'm getting ready to do a migration this weekend it looks like (have a Ex2010 Hybrid /O365 setup) and all my user's mb's are already up in the cloud but we have a lot of on-prem DG's.

 

Is there a PS command to pull the list of users for a specific group and save to a CSV?

Get-DistributionGroupMember ???

 

And then the corresponding  PS-online command to create the DG with the CSV list of users?

 

Maybe I missed it above but thanks!

Jason

Highlighted

@Jason-EV 

 

Get-DistributionGroupMember -Identity MyGroup | Select DisplayName, PrimarySmtpAddress | Export-CSV -NoTypeInformation c:\temp\DL.csv

 

Something like that...

Highlighted

@Tony Redmondgreat! thanks for fast reply! I'll give that try right now. By any chance do you know what it is for writing it or the Exchange Online side?

 

If not I'll open a case. Thanks again!

Highlighted

@Jason-EV  It works for either on-premises or online.