Home » Microsoft Office 365 » How to Export Calendar from Office 365 Using PowerShell Commands?

How to Export Calendar from Office 365 Using PowerShell Commands?

author
Published By Ashwani Tiwari
Aswin Vijayan
Approved By Aswin Vijayan
Published On December 27th, 2022
Reading Time 3 Minutes Reading

Summary: Today’s blog describes how to export Calendar from Office 365 using PowerShell commands. A Complete guide explaining the step-by-step process, let’s follow …

Companies hold meetings and communicate ideas and strategies to make projects a success. Therefore, managers use the calendar application to plan meetings and share them with others. However, many managers may need to share an offline copy of their calendar events with other users and clients.

So you have to export a calendar from Microsoft Office 365 and you can do that easily using Windows PowerShell commands.

Prerequisites Before Starting Export Process by PowerShell

  • Create a network shared folder to store PST files.
  • The user account must have read / write permissions to the Trusted Exchange Subsystem group on the folder.

PowerShell Commands to Export Calendar from Office 365

Follow the steps to export Office 365 calendar items by using PowerShell commands:

1. Open PowerShell and enter the command

$UserCredential = Get-Credential

You will be prompted for your Office 365 account credentials. Enter and click OK.

2. After the second command, a New Session will Create between PowerShell and Microsoft Office 365

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.csom/powershell-liveid/ -Credential $UserCredential – Authentication Basic –AllowRedirection

3. Next command to import the session in Office 365 account

Import-PSSession $Session –DisableNameChecking

4. Now the PowerShell cmdlet has two options you can run. You can export the entire calendar folder or calender items within the date range.

New-MailboxExportRequest –Mailbox -IncludeFolders ‘Calendars’ –FilePath ‘C:\Team-Meeting-Room\Top.pst’

or

Export-Mailbox-Identity –StartDate ‘25/05/2020’ –EndDate ‘08/06/2020’ –IncludeFolders ‘\Calendar’ –FilePath \\PSTFile\FolderName\FileName.pst

Limitations of Windows PowerShell Commands

  • You cannot easily apply filters to calendar items using manual mode.
  • The ability to export calendar items from a single mailbox may not be sufficient for large projects.
  • The account requires personalization privileges when importing data.
  • If the session stops abruptly during export, you must restart the export process. Also, the PST file may be corrupted.
  • The mailbox export request may contain some errors The access path is denied.

Automated Solution Export Calendar from Office 365 Accounts

Office 365 Export Tool lets you export the selective or batch Calendar items from Office 365 accounts. With this Software, you can select any folder from your Office 365 mailbox, filter it, and export it into PST, MSG, or EML formats.

Export Calendar from Office 365

Final Words

The complete method explained to export Calendar from Office 365 using PowerShell commands. Also, there are restrictions on PowerShell commands. To overcome the limitations of manual export mode, you need to use Office 365 export software.

email-backup-banner