• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 961
  • Last Modified:

How can I disable the events from email feature in Office365 via powershell

We use Office365 for our email and we noticed recently that my colleagues event confirmations (plane and hotel reservations) are showing up on their Outlook calendars calendars as private events. I know a user can disable or modify this feature in OWA, Screenshot of Email from Events feature in Office365 OWA but is there a way to programmatically change this feature for all my colleagues?  We all use shared calendars and managing this feature on a user by user basis is not ideal for our organization.
0
sscal
Asked:
sscal
  • 3
  • 2
2 Solutions
 
Vasil Michev (MVP)Commented:
You can do it via PowerShell:

Set-MailboxMessageConfiguration vasil -EventsFromEmailEnabled $false

Open in new window


Or bulk for all users:

Get-Mailbox | Set-MailboxCalendarConfiguration -EventsFromEmailEnabled $false

Open in new window

0
 
sscalAuthor Commented:
Fantastic!  Is there a way to keep the feature but to disable the private attribute of the calendar entries created by this feature?
0
 
Vasil Michev (MVP)Commented:
You should be able to control all settings via PowerShell, here's the full list of the relevant parameters:

EventsFromEmailEnabled                : True
EventsFromEmailDelegateChecked        : True
EventsFromEmailShadowMailboxChecked   : False
ReportEventsCreatedFromEmailEnabled   : True
CreateEventsFromEmailAsPrivate        : True
FlightEventsFromEmailEnabled          : True
DiningEventsFromEmailEnabled          : True
HotelEventsFromEmailEnabled           : True
PackageDeliveryEventsFromEmailEnabled : False
0
 
sscalAuthor Commented:
Perfect.  Thanks for your help.
0
 
sscalAuthor Commented:
The solution is exactly what I needed.  Thanks Vasil!
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now