Forum Discussion
vand3rlinden
Jun 23, 2022Brass Contributor
Recover calendar items from a Microsoft 365 group
Hi! Someone at an organization I work for have accidentally delete all the calendar items of a Microsoft 365 Group. I am trying to restore those items, I added the Microsoft 365 Group as a shared...
- Jun 23, 2022You should be able to use Get-RecoverableItems/Restore-RecoverableItems 🙂
VasilMichev
Jun 23, 2022MVP
You should be able to use Get-RecoverableItems/Restore-RecoverableItems 🙂
vand3rlinden
Jun 23, 2022Brass Contributor
VasilMichevThanks, this was the trick. For future readers, hereby the full fix.
<#
Get-RecoverableItems and Restore-RecoverableItems
The cmdlets are available only in the Mailbox Import Export role, and by default, the role isn't assigned to any role groups.
To use this cmdlet, you need to add the Mailbox Import Export role to a role group (for example, to the Organization Management role group)
#>
#### 1: Add the role if not exist
New-ManagementRoleAssignment -SecurityGroup "Organization Management" -Role "Mailbox Import Export"
#### 2: Search on FilterItemType IPM.Appointment (Meetings and appointments)
#Search all
Get-RecoverableItems -Identity "primarysmtp" -FilterItemType IPM.Appointment
#Search on range
Get-RecoverableItems -Identity "primarysmtp" -FilterItemType IPM.Appointment -FilterStartTime "3/17/2022 12:00:00 AM" -FilterEndTime "6/15/2022 11:59:59 PM"
#### 3: After you check the results, you can go over to the restore
#Restore all
Restore-RecoverableItems -Identity "primarysmtp" -FilterItemType IPM.Appointment
#Restore in range
Restore-RecoverableItems -Identity "primarysmtp" -FilterItemType IPM.Appointment -FilterStartTime "3/17/2022 12:00:00 AM" -FilterEndTime "6/15/2022 11:59:59 PM"
#All Item Types and Message Classes: https://docs.microsoft.com/en-us/office/vba/outlook/concepts/forms/item-types-and-message-classes