@JaredBusch said in Exporting mailboxes and archives from Office 365 without using Outlook.:
I have this saved as powershell script named CreatePST.ps1 in C:\Scripts on the Exchange server.
# To execute script, you must open an exchange powershell window, elevated permissions not required.
# First you must be in the scripts directory.
# cd \scripts
# Then execute the powershell script with 3 parameters.
# ./CreatePST.ps1 >First Name< >Last Name< >email alias<
# ./CreatePST.ps1 Jared Busch jbusch
# The export path is not a variable as we need to know that it is writable by the system.
param (
[string]$FirstName = $(throw "-FirstName is required."),
[string]$LastName = $(throw "-LastName is required."),
[string]$alias = $(throw "-alias is required.")
)
New-MailboxExportRequest -Mailbox "$alias" -FilePath "\\server\share\PSTExports\$FirstName.$LastName.pst"
Write-Host ""
Write-Host "To check status, run: Get-MailboxExportRequest | Get-MailboxExportRequestStatistics"
to my knowledge, there is no comparable feature for Office 365.
Most people recommend you use Outlook.
This is a killer script though. I was on the verge of setting up a local exchange server, migrating mailboxes in hybrid mode to the local install and running this script from there.