If you use Office 365 and have a room / resource calendar that you would like to be public on the web you can use the following commands:
Set-MailboxCalendarFolder -Identity public@companydomain.com:\calendar -PublishEnabled $true Get-MailboxCalendarFolder -Identity public@companydomain.com:\calendar Set-MailboxCalendarFolder -Identity public@companydomain.com:\calendar -DetailLevel Full Set-MailboxCalendarFolder -Identity public@companydomain.com:\calendar -PublishDateRangeTo OneYear Set-MailboxCalendarFolder -Identity public@companydomain.com:\calendar -PublishDateRangeFrom OneYear
Site visitor “Chris” has helpfully found the command to get the URLs:
Get-MailboxCalendarFolder -identity resourceuser@domain.com:\calendar
These are just examples of what they would look like. You would then take the CalendarURL and iframe or link to it on your website.
PublishedCalendarUrl : http://outlook.office365.com/owa/calendar/8b32dd7124074be1801724997e8f6fc5@companydomain.com/8f9b3ea1789b4a09abb4e54c8845c4db5295601334478869598/calendar.html PublishedICalUrl : http://outlook.office365.com/owa/calendar/8b32dd7124074be1801724997e8f6fc5@companydomain.com/8f9b3ea1789b4a09abb4e54c8845c4db5295601334478869598/calendar.ics
Be aware that the public URL and iCal feed DOES NOT contain the category information. This means custom colors for events or category names are not visible to the public. (A bit annoying!).
Hi, thanks for this post. Did you figure out how to get the public URLs of the published calendar? Thanks!
I will try again and update this post (and make another comment reply) if I get time. Spare time is quite thin on the ground at the moment.
I just found it out:
Get-MailboxCalendarFolder -identity resourceuser@domain.com:\calendar
Cheers
Fantastic, thank you for posting the answer :) Saves me some time! I will update the post.
Thank you for this. I went through a million posts before I got this to work.
Hello Computer Guy! You’re the best! Just what I needed.
Hi.
Any idea how I can have the details shown and get an url to show “Week” view?
I get Forbidden access for the url. Do I need to change the folder permissions too? this is a room calendar.
I need to view a calendar in daily view on Digital Signage that only supports URLs. There does not seem to be a way to change the view from the URL in O365. Defaults to month view.