Last active
June 25, 2025 19:46
-
-
Save joemaller/beb465cd79cdaf91b53ff07698a62069 to your computer and use it in GitHub Desktop.
Commands for publishing an Exchange calendar from a sharedMailbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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