Skip to content

Instantly share code, notes, and snippets.

@joemaller
Last active June 25, 2025 19:46
Show Gist options
  • Save joemaller/beb465cd79cdaf91b53ff07698a62069 to your computer and use it in GitHub Desktop.
Save joemaller/beb465cd79cdaf91b53ff07698a62069 to your computer and use it in GitHub Desktop.
Commands for publishing an Exchange calendar from a sharedMailbox
# Connect and start an Exchange Online PowerShell session
Connect-ExchangeOnline -UserPrincipalName admin@example.com
# Publish the calendar
Set-MailboxCalendarFolder -Identity "[email protected]:\Calendar" -PublishEnabled $true -DetailLevel FullDetails -PublishDateRangeFrom ThreeMonths -PublishDateRangeTo OneYear
# Print the Published ICS url
Get-MailboxCalendarFolder -Identity "[email protected]:\Calendar" | Select-Object -ExpandProperty PublishedICalUrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment