One can use this to import really big ones, dozens of gigabytes in size, imports which will crash, hang, and otherwise cough on Outlook very easily. Runs directly to folders inside of mailboxes. The amazing Yvonne Wynkoop found the first really good set of instructions we have seen:
Mysteries do abound about the Microsoft-provided command line tool AzCopy, not the least being the fact that there is a version 10 and a version 8.1. Items as of this writing:
- Version 8.1 is downloadable from Office 365, and works. Have no clue what 10 is for.
- Usage and download of it, is now through Office 365 Security & Compliance, Information Governance, Import.
- When you run it for an upload, add “/NC:2” to the end of the command line. This increases its speed and stability quite a lot, and prevents timeouts. Default is reportedly 24. Perhaps the developers are sitting on Google Fiber?
- If it times out, just restart it carefully, it will usually continue where it left off.
If the above works for you, use the same number when downloading PSTs from eDiscovery, via registry edit:
Windows Registry Editor Version 5.00
Once you install the Office 2016 templates:
you can set the maximum sizes:
This creates the same registry entries as the manual method.
To count the total number of folders in use within a mailbox, first connect Powershell to Exchange Online, then:
$MailboxToCountFoldersWithin = Get-Mailbox username
$MailboxToCountFoldersWithin | Get-MailboxFolderStatistics | Measure-Object | Select-Object -ExpandProperty Count
The total number of folders, will be output as a number.
It can happen fairly easily, that one or more user’s Office 365 login is wrong, and AD Sync fails to correct it. Here is a manual override, courtesy of the excellent Joe Busby.
- On a domain controller, verify the AD username and proxy addresses is set correctly.
- Connect to O365 Powershell on any machine with Powershell 5.1, and run this command:
Set-MsolUserPrincipalName -UserPrincipalName "firstname.lastname@example.org" -NewUserPrincipalName "email@example.com"
- On the user’s PC:
- Navigate to Settings > Accounts > Access work or school
- Disconnect from any accounts linked to the new or old username
- Hit the [ + ] Connect button and provide the credentials to sign in to Office 365
- If their password has been changed since their account was synced up with the wrong username, the password may need to be reset.
- Remove any credentials from windows credential manager that match the old username.
- Check Outlook, you may have to create a new profile.
Here is a utility:
which does an excellent job. It will edit, merge, save copies, et cetera. It works also with later versions of Outlook which use .DAT files instead of .NK2 files.
There is also a Microsoft page, with a utility linked, reported to be excellent:
This is a very long list, the most complete list I’ve seen:
Lots of possibilities for cleanup and fixup.