Search
  • For Individuals
      « Back
    • Windows Data Recovery

      Recovers lost or deleted Office documents, emails, presentations & multimedia files.

      Free Standard Professional Premium

    • Mac Data Recovery

      Recovers deleted files, photos, videos etc. on Mac.

      Free Standard Professional Premium

    • Photo Recovery

      Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

      Free Standard Professional Premium

    • Video Repair
    • Photo Repair
    • iPhone Data Recovery
  • For Business
      « Back
    • Email Repair & Converter

      Repair for Exchange Converter for EDB Converter for OST Converter for NSF Converter for OST MBOX Repair for Outlook

    • Database & File Repair

      Repair for MS SQL Repair for Access Repair for QuickBooks Software Repair for Excel Extractor for Windows Backup Repair for MySQL

    • Data Recovery & Erasure

      Data Recovery Professional Data Recovery Technician Mac Recovery for Technician Virtual Machine Recovery File Erasure Software Mobile Erasure Drive Erasure File Eraser Software File Eraser Software for Mac

    • Toolkit

      Exchange Toolkit Outlook Toolkit File Repair Toolkit MS SQL Toolkit Data Recovery Toolkit

    • Forensic

      Email Forensic Exchange Auditor Log Analyzer for MySQL Log Analyzer for MS SQL

  • Store
  • Partners
  • Services
  • Offers
  • Support

 

  • For Individuals
    DIY software for anyone who works with data.

    Windows Data Recovery Recovers lost or deleted Office documents, emails, presentations & multimedia files

    Free Standard Professional Premium

    Mac Data Recovery Especially for Mac users to recover deleted documents and multimedia files from macOS

    Free Standard Professional Premium

    Video Repair Windows Mac Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

    StandardPremium

    Photo Recovery Windows Mac Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

    Standard Professional Premium

    iPhone Data Recovery Windows Mac Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad

    Recover Erase Toolkit

    Photo Repair Windows Mac Repair multiple corrupt photos in one go. Supports JPEG & other formats.

    Standard Professional Premium


  • For Business
    • Email Repair
    • Email Converter
    • File Repair
    • Data Recovery & Erasure
    • Toolkit
    • Forensic

    Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365

    Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts

    OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items

    Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST

    Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form

    EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST

    OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST

    NSF to PST Convert IBM Notes NSF file & export all mailbox items including emails & attachments to PST

    MBOX to PST Convert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST

    OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form

    GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST

    EML to PST Convert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST

    Office 365 to PST Connect to Office 365 account & export mailbox data to PST and various other formats

    DBX to PST Convert Outlook Express (DBX) file & export all mailbox data - emails, attachments, etc. - to PST

    SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form

    Access Repair Repair corrupt .ACCDB and .MDB files & recover all records & objects in a new database

    QuickBooks Repair Repair corrupt QuickBooks® data file & recover all file components in original form

    MySQL Repair Repair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.

    Excel Repair Repair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.

    BKF Repair Repair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data

    Database Converter Interconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files

    PowerPoint Repair Repair corrupt PPT files and restore tables, header, footer, & charts, etc. like new

    File Repair Toolkit Repair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form

    Data Recovery Windows Mac Recover lost or deleted data from HDD, SSD, external USB drive, RAID & more.

    Technician Toolkit

    Tape Data Recovery Retrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.

    Virtual Machine Recovery Recover documents, multimedia files, and database files from any virtual machine

    File Erasure Permanently wipe files and folders, and erase traces of apps and Internet activity.

    Standard Corporate

    Mobile Erasure Certified and permanent data erasure software for iPhones, iPads, & Android devices

    Drive Erasure Certified and permanent data erasure software for HDD, SSD, & other storage media Windows Mac

    Exchange Toolkit 5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.

    Outlook Toolkit Comprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.

    File Repair Toolkit Powerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.

    MS SQL Toolkit 5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.

    Data Recovery Toolkit Software helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.

    Email Forensic Advanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.

    Exchange Auditor Exchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.

    Log Analyzer for MySQL Analyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.

    Log Analyzer for MS SQL Track & analyze MS SQL Server database transactions log files.

    Email Forensic
    STELLAR EMAIL FORENSIC

    Advanced email forensic tool to analyze and collect the mailbox data of email clients

    Learn More arrow


    All Products arrow

    All Products arrow

    All Products arrow

    All Products arrow

  • Our Partners
  • Lab Services
  • microphone-icon-android

    Trending Searches

    Data Recovery

    Photo Recovery

    Video Repair

    iPhone Data Recovery

    File Erasure Software

    Exchange Repair

    OST to PST

    PST Repair

    Raid Recovery

    MS SQL Repair

  • English Deutsch Français Nederlands Italiano Español 日本語 简体中文
  • Support
EDB to PST Converter 5 minute read

How to Migrate Exchange 2013, 2016 Public Folders to Office 365?

Updated on August 3rd, 2022
Ravi Singh
Written By
Ravi Singh
Shaun Hardneck
Approved By
Shaun Hardneck

Although various companies are shifting toward SharePoint Online, Teams, and automation in their Office 365 tenant, Public Folders are still very much used by companies to store different kinds of data. Also, the Public Folders in Office 365 (Exchange Online) are still supported and used. Migrating a mailbox from on-premises Exchange Server 2013 or 2016 to Office 365 would not be a difficult task, but it might be a little bit trickier and more complicated to export and import Public Folders into Office 365. In this article, we will be going through the process of migrating Public Folders from Exchange 2013 to Office 365. For Exchange Server 2016, the process is same.

Procedure to Migrate Exchange 2013/2016 Public Folders to Office 365

First, you need to download the Microsoft Scripts that can help you in the migration process. These can be downloaded from here.

Stellar

Also, you need to download Pre-Migration Scripts from: here

Stellar

After the PowerShell scripts are downloaded, you can store them in the C:\temp folder to work on them.

Stellar

Now, you need to prepare your local Exchange Server 2013 or 2016 for the process. Using a global administrator in Office 365 tenant, get the domain to add to your local server as an accepted domain.

New-AcceptedDomain -Name PublicFolderMigration -DomainName mycompany.onmicrosoft.com
Stellar

It is to be noted that not all Public Folders are compatible. You need to rename the Public Folders which contain any backslash or forward slash in the name. If you have many Public Folders, it will take a lot of time but by using PowerShell, you can automate this part.

Get-PublicFolder -Recurse -ResultSize Unlimited | Where {$_.Name -like "*\*" -or $_.Name -like "*/*"} | Format-List Name, Identity
Stellar

This should not return any results if you do not have any folders with a slash. All you need to do is rename the folders if any are found. Next, you need to know if there were any attempts of migrations, done from your staff, from an Exchange Server which was inherited from another company.

Get-OrganizationConfig | Format-List PublicFoldersLockedforMigration, PublicFolderMigrationComplete, PublicFolderMailboxesLockedForNewConnections, PublicFolderMailboxesMigrationComplete
Stellar

To start migration, the Public Folders status need to be ‘False’. If any folders are marked as ‘True’, you need to change the status of those to ‘False’.

Set-OrganizationConfig -PublicFoldersLockedforMigration:$false -PublicFolderMigrationComplete:$false -PublicFolderMailboxesLockedForNewConnections:$false -PublicFolderMailboxesMigrationComplete:$false
Stellar

Once you got the above cleared up, take a snapshot of the current structure of your Public Folders which you can use after the migration to compare the results.

Get-PublicFolder -Recurse | Export-CliXML C:\Scripts\structure.xml
Stellar

Now, check if there are any current migrations running. If there are any, you need to remove them.

Get-PublicFolderMigrationRequest | Get-PublicFolderMigrationRequestStatistics
Get-MigrationBatch | ?{$_.MigrationType.ToString() -eq "PublicFolder"}
Stellar

The above command should return nothing.

The below given Export-ModernPublicFolderStatistics command will export the statistics of the Public Folders to a CSV file.

Stellar
.\ModernPublicFolderToMailboxMapGenerator.ps1 -MailboxSize 25GB -MailboxRecoverableItemSize 1GB -ImportFile .\pstats.csv -ExportFile C:\Scripts\map.csv
Stellar

This will create the mapping file from the statistics CSV you just exported.

After connecting to Exchange Online via PowerShell by using the Connect-ExchangeOnline, you need to create empty Public Folders at the destination by using the below command.

$localmapping = Import-Csv C:\scripts\map.csv
$MailboxName = ($mappings | Where-Object FolderPath -eq "\" ).TargetMailbox
New-Mailbox -HoldForMigration:$true -PublicFolder -IsExcludedFromServingHierarchy:$false
$ MailboxName
($localmapping | Where-Object TargetMailbox -ne $ MailboxName).TargetMailbox | Sort-
Object -unique | ForEach-Object { New-Mailbox -PublicFolder
-IsExcludedFromServingHierarchy:$false $_ }

This will create Public Folders in your Office 365 tenant.

The next step is the migration process. You can launch it from the local Exchange Server by using the below script to get the credentials of the destination tenant.

.\Sync-ModernMailPublicFolders.ps1 -Credential (Get-Credential) -CsvSummaryFile:sync.csv
Stellar

Enter the credentials of either the Global Admin or the user which has full access to Public Folders. After this, you need to set up the process.

$Source = "mycompany.onmicrosoft.com"
$PfE = New-MigrationEndpoint -PublicFolder -Name PublicFolderEndpoint
-RemoteServer $Source -Credentials $Credentials
[byte[]]$bytes = Get-Content -Encoding Byte C:\scripts\map.csv
New-MigrationBatch -Name PublicFolderMigration -CSVData $bytes -SourceEndpoint

This will set up the migration process but not start it.

To start the process, you need to run the below command.

Start-MigrationBatch PublicFolderMigration

Once the process is started, you need to lock the on-premises Public Folders by running the below command.

Set-OrganizationConfig -PublicFolderMailboxesLockedForNewConnections $true
Stellar

Although the change is instant, it might take up to 2 hours until it is propagated to all the users. Once this time has passed, you can finish off the migration by using the Complete-MigrationBatch Public Folder Migration in the Exchange Online PowerShell.

After all the Public Folders have been migrated, you need to unlock them by using the below command in the Exchange Online PowerShell.

Set-OrganizationConfig -RemotePublicFolderMailboxes $Null -PublicFoldersEnabled Local

As you can see, this is a lengthy and complicated process that could have a number of fault points. It will take a considerate amount of time to complete and is not a hundred percent neat. As an alternative, you can look at third-party applications, such as Stellar Converter for EDB. The application can migrate public folders from exchange 2013 to Office 365 as well as from Exchange 2016. The software can open the EDB file of any size and of any version of the Exchange Server. It can export Public Folders to PST or directly to an Office 365 tenant.

About The Author

Ravi Singh

Ravi Singh is a Senior Writer at Stellar®. He is an expert Tech Explainer, IoT enthusiast, and a passionate nerd with over 6 years of experience in technical writing. He writes about Data Recovery, File Repair, Email Migration, Linux, Windows, Mac, and DIY Tech. Ravi spends most of his weekends working with IoT devices and playing games on the Xbox. He is also a solo traveler who loves hiking and exploring new trails.

Best Selling Products

Stellar Converter for EDB

Stellar Converter for EDB

Stellar Converter for EDB is a professio

Read More
Stellar Toolkit for Exchange

Stellar Toolkit for Exchange

5-in-1 suite of specialized tools, highl

Read More
Stellar Repair for Exchange

Stellar Repair for Exchange

Powerful software recommended by MVPs &

Read More
Stellar Converter for OST

Stellar Converter for OST

Powerful software trusted by Microsoft M

Read More

Table of Contents    arrow

Categories

offer banner

Related Posts

related post
EDB to PST Converter

How to fix error-The Operation couldn’t be performed because object ‘username’ couldn’t be found on domain.corp

Stellar Author Ravi Singh July 21, 2022 Read More
related post
EDB to PST Converter

How to Fix Error: PublicFolderSizeExceedsTargetQuotaException?

Stellar Author Ravi Singh June 9, 2022 Read More
related post
EDB to PST Converter

[FIXED] Exchange Error: 550 5.1.1 RESOLVER.ADR.ExRecipNotFound

Stellar Author Ravi Singh June 9, 2022 Read More

Free Trial for 60 Days

Stellar Official Website

Stellar Data Recovery Inc.
48 Bridge Street Metuchen,
New Jersey 08840,
United States

ALSO AVAILABLE AT

Partner Logo

About

  • About us
  • Career
  • ISMS Policy
  • Privacy Policy
  • Terms of Use
  • License Policy
  • Refund Policy
  • End User License Agreement

RESOURCES

  • Blog
  • Articles
  • Product Videos
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Software Catalog

NEWS & EVENTS

  • News
  • Events

PARTNERS

  • Affiliates
  • Resellers
  • Distributors

Useful Links

  • Contact Us
  • Support
  • Special Offers
  • Student Discounts
  • Awards & Reviews
  • Downloads
  • Store
  • Sitemap
Follow Us

tw in yt

Stellar & Stellar Data Recovery are Registered Trademarks of Stellar Information Technology Pvt. Ltd. © Copyright 2022 Stellar Information Technology Pvt. Ltd. All Trademarks Acknowledged.

Hippa Logo tuv footer partner logo DMCA.com Protection Status
We use cookies on this website. By using this site, you agree that we may store and access cookies on your device Read More Got it!