Skip to content

Instantly share code, notes, and snippets.

@dbirks
Last active May 30, 2017 17:29
Show Gist options
  • Save dbirks/6bff86770773432841fd3e4fe3029e43 to your computer and use it in GitHub Desktop.
Save dbirks/6bff86770773432841fd3e4fe3029e43 to your computer and use it in GitHub Desktop.
How to export a room calendar as .ics

Get a shell on Exchange Online by following Microsoft's guide.

Publish the calendar for the room:

Set-MailboxCalendarFolder RoomNameHere:\Calendar -DetailLevel fulldetails -PublishEnabled $true -reseturl

Show the .html link, as well as the .ics link:

Get-MailboxCalendarFolder -Identity RoomNameHere:\calendar

This also works for sharing user's calendars. The key to seeing all of the details instead of just "Busy" is the aptly named -DetailLevel fulldetails.

I was helped by Miles Hayler's answer on superuser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment