{"id":3210,"date":"2022-05-17T03:00:08","date_gmt":"2022-05-17T02:00:08","guid":{"rendered":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/"},"modified":"2022-05-17T03:00:08","modified_gmt":"2022-05-17T02:00:08","slug":"announcing-public-folder-migration-scripts-with-modern-authentication-support","status":"publish","type":"post","link":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/","title":{"rendered":"Announcing Public Folder Migration Scripts with Modern Authentication Support"},"content":{"rendered":"<div>\n<p>We are excited to announce that we have updated the following scripts for migrating public folders from Exchange Server to Exchange Online to support Modern authentication.<\/p>\n<table width=\"723\">\n<tbody>\n<tr>\n<td width=\"287\">\n<p><strong>Script name<\/strong><\/p>\n<\/td>\n<td width=\"202\">\n<p><strong>When to use<\/strong><\/p>\n<\/td>\n<td width=\"234\">\n<p><strong>Download location<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"287\">\n<p>AddMembersToGroups.ps1<\/p>\n<\/td>\n<td rowspan=\"3\" width=\"202\">\n<p>Public folder to Microsoft 365 Group migration<\/p>\n<\/td>\n<td rowspan=\"3\" width=\"234\">\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=55985\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=55985<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"287\">\n<p>LockAndSavePublicFolderProperties.ps1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"287\">\n<p>UnlockAndRestorePublicFolderProperties.ps1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"287\">\n<p>Sync-ModernMailPublicFolders.ps1<\/p>\n<\/td>\n<td width=\"202\">\n<p>Sync mail-enabled public folders to Exchange Online<\/p>\n<\/td>\n<td width=\"234\">\n<p><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=54855\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=54855<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>We\u2019re also excited to announce that we have added additional capabilities and checks to the <em>Sync-ModernMailPublicFolders.ps1<\/em> script<em>, <\/em>which is used to synchronize mail-enabled public folders from Exchange Server to Exchange Online.<\/p>\n<p>The following are some of the improvements in <em>Sync-ModernMailPublicFolders.ps1<\/em>:<\/p>\n<ul>\n<li>Supports Modern authentication as well as multi-factor authentication (MFA)<\/li>\n<li>Uses Exchange Online PowerShell v2 module<\/li>\n<li>Implicitly downloads and invokes <a href=\"https:\/\/aka.ms\/ValidateMEPF\" target=\"_blank\" rel=\"noopener noreferrer\">ValidateMailEnabledPublicFolders.ps1<\/a><\/li>\n<li>Finds and reports the following inconsistencies with mail-enabled public folders (MEPFs):\n<ul>\n<li>Orphaned, duplicate, or disconnected MEPFs<\/li>\n<li>Mail-enabled system folders<\/li>\n<\/ul>\n<\/li>\n<li>Can fix above reported inconsistencies<\/li>\n<\/ul>\n<p>The script must be run from the Exchange Management Shell on Exchange Server 2013 or later.<\/p>\n<p>Here\u2019s some of the important parameters for the script:<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"126\">\n<p><strong>Parameter<\/strong><\/p>\n<\/td>\n<td width=\"222\">\n<p><strong>Description<\/strong><\/p>\n<\/td>\n<td width=\"276\">\n<p><strong>Example<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"126\">\n<p>Credential<\/p>\n<\/td>\n<td width=\"222\">\n<p>Use to provide stored credentials or provide credentials at the time of running script.<\/p>\n<p>Note: Don&#8217;t use if MFA is enabled.<\/p>\n<\/td>\n<td width=\"276\">\n<p>$cred = Get-Credentials<\/p>\n<p>\u00a0<\/p>\n<p>.Sync-ModernMailPublicFolders.ps1 -Credential $cred<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"126\">\n<p>CsvSummaryFile<\/p>\n<\/td>\n<td width=\"222\">\n<p>The file path where sync operations and errors will be logged in a CSV format. This parameter is mandatory.<\/p>\n<\/td>\n<td width=\"276\">\n<p>.Sync-ModernMailPublicFolders.ps1 -Credential $cred -CsvSummaryFile sync_Log.csv<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"126\">\n<p>ConnectionUri<\/p>\n<\/td>\n<td width=\"222\">\n<p>URI to the Exchange Online PowerShell.<\/p>\n<p>The script will use default connection URI if no value is provided.<\/p>\n<\/td>\n<td width=\"276\">\n<p>\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"126\">\n<p>FixInconsistencies<\/p>\n<\/td>\n<td width=\"222\">\n<p>Fixes any inconsistencies such as orphaned, duplicate, or disconnected mail-enabled public folders.<\/p>\n<\/td>\n<td width=\"276\">\n<p>\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"126\">\n<p>Force<\/p>\n<\/td>\n<td width=\"222\">\n<p>Force the script execution and bypass validation warnings.<\/p>\n<\/td>\n<td width=\"276\">\n<p>\u00a0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><font size=\"5\">Usage<\/font><\/p>\n<p>In the default mode, the script finds and reports orphaned MEPFs and any inconsistencies in MEPFs. It does so by implicitly downloading and invoking the <a href=\"https:\/\/aka.ms\/ValidateMEPF\" target=\"_blank\" rel=\"noopener noreferrer\">ValidateMailEnabledPublicFolders.ps1<\/a> script.<\/p>\n<p>Example:<\/p>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markup\"><code>.Sync-ModernMailPublicFolders.ps1 -Credential $c -CsvSummaryFile summ.csv<\/code><\/pre>\n<p>\u00a0<\/p>\n<p>Running the script with \u201cFixInconsistencies\u201d parameter will fix issues found with MEPFs:<\/p>\n<p>\u00a0<\/p>\n<pre class=\"lia-code-sample language-markup\"><code>.Sync-ModernMailPublicFolders.ps1 -Credential $c -CsvSummaryFile summ.csv -FixInconsistencies<\/code><\/pre>\n<p>\u00a0<\/p>\n<p style=\"background: #F0F0F0; padding: .5em; margin: 1em 0 1em 0;\">Exchange 2010 public folder migrations to Exchange Online continue using only basic authentication since Exchange 2010 doesn\u2019t meet the requirements to support modern authentication. You still must have basic authentication enabled for remote PowerShell on your Exchange Online tenant to migrate legacy public folders to Exchange Online directly from Exchange 2010. Please complete those migrations before October 2022!<\/p>\n<p><span class=\"author\">Exchange Public Folder Team<\/span><\/p>\n<\/div>\n<p><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/announcing-public-folder-migration-scripts-with-modern\/ba-p\/3382800\">Read full article (Microsoft Exchange Blog)<\/a><\/p>\n<p>All content and images belong to their respected owners, this article is curated for informational purposes only.<\/p>\n","protected":false},"excerpt":{"rendered":"We are excited to announce that we have updated the following scripts for migrating public folders from Exchange&hellip;\n","protected":false},"author":2,"featured_media":2564,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[15],"tags":[201,356,202],"coauthors":[48],"class_list":["post-3210","post","type-post","status-publish","format-standard","has-post-thumbnail","category-microsoft-exchange-server","tag-announce","tag-excited","tag-that","cs-entry","cs-video-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Announcing Public Folder Migration Scripts with Modern Authentication Support | Sebae Networks<\/title>\n<meta name=\"description\" content=\"View Announcing Public Folder Migration Scripts with Modern Authentication Support for free, here at Sebae. Discover more great posts on our website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Announcing Public Folder Migration Scripts with Modern Authentication Support | Sebae Networks\" \/>\n<meta property=\"og:description\" content=\"View Announcing Public Folder Migration Scripts with Modern Authentication Support for free, here at Sebae. Discover more great posts on our website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/\" \/>\n<meta property=\"og:site_name\" content=\"Sebae Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sebaenetworks\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-17T02:00:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/12\/sebae-logo-card.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Dean\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:site\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Dean\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Announcing Public Folder Migration Scripts with Modern Authentication Support | Sebae Networks","description":"View Announcing Public Folder Migration Scripts with Modern Authentication Support for free, here at Sebae. Discover more great posts on our website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/","og_locale":"en_GB","og_type":"article","og_title":"Announcing Public Folder Migration Scripts with Modern Authentication Support | Sebae Networks","og_description":"View Announcing Public Folder Migration Scripts with Modern Authentication Support for free, here at Sebae. Discover more great posts on our website.","og_url":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/","og_site_name":"Sebae Networks","article_publisher":"https:\/\/www.facebook.com\/sebaenetworks","article_published_time":"2022-05-17T02:00:08+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/12\/sebae-logo-card.jpg","type":"image\/jpeg"}],"author":"James Dean","twitter_card":"summary_large_image","twitter_creator":"@sebaenetworks","twitter_site":"@sebaenetworks","twitter_misc":{"Written by":"James Dean","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#article","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/"},"author":{"name":"James Dean","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/6d07e05e3d3e4483117c4e2c3315a89f"},"headline":"Announcing Public Folder Migration Scripts with Modern Authentication Support","datePublished":"2022-05-17T02:00:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/"},"wordCount":419,"commentCount":0,"publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","keywords":["announce","excited","that"],"articleSection":["Microsoft Exchange Server"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/","url":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/","name":"Announcing Public Folder Migration Scripts with Modern Authentication Support | Sebae Networks","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#primaryimage"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","datePublished":"2022-05-17T02:00:08+00:00","description":"View Announcing Public Folder Migration Scripts with Modern Authentication Support for free, here at Sebae. Discover more great posts on our website.","breadcrumb":{"@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#primaryimage","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/11\/exchange-server-header.png","width":1920,"height":1080,"caption":"exchange server header"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sebae.net\/blog\/announcing-public-folder-migration-scripts-with-modern-authentication-support\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sebae.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Announcing Public Folder Migration Scripts with Modern Authentication Support"}]},{"@type":"WebSite","@id":"https:\/\/www.sebae.net\/blog\/#website","url":"https:\/\/www.sebae.net\/blog\/","name":"Sebae Networks","description":"Tech Tips, News, Tutorials &amp; Advice","publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sebae.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.sebae.net\/blog\/#organization","name":"Sebae","url":"https:\/\/www.sebae.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","width":512,"height":512,"caption":"Sebae"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sebaenetworks","https:\/\/x.com\/sebaenetworks"]},{"@type":"Person","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/6d07e05e3d3e4483117c4e2c3315a89f","name":"James Dean","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg72371c27260698ee55141397050ef40a","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_2_1634496168-96x96.jpg","caption":"James Dean"},"sameAs":["https:\/\/www.sebae.net"],"url":"https:\/\/www.sebae.net\/blog\/author\/jdean\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/3210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/comments?post=3210"}],"version-history":[{"count":0,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/3210\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media\/2564"}],"wp:attachment":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media?parent=3210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/categories?post=3210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/tags?post=3210"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/coauthors?post=3210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}