{"id":390,"date":"2020-06-15T14:08:44","date_gmt":"2020-06-15T21:08:44","guid":{"rendered":"https:\/\/www.vscrypt.com\/?p=390"},"modified":"2020-08-21T13:06:44","modified_gmt":"2020-08-21T20:06:44","slug":"o365-calendar-publishing-powershell","status":"publish","type":"post","link":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/","title":{"rendered":"Calendar Publishing Office 365 using PowerShell"},"content":{"rendered":"\n<p>Internet Calendars are calendars that can be published to the Internet where others can view or subscribe to them.  We can make it easy to enable and disable sharing using PowerShell.  This is especially handy if an Exchange Online administrator has to set this up for other users.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>To Enable Calendar Publishing<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PowerShell\" data-shcb-language-slug=\"powershell\"><span><code class=\"hljs language-powershell shcb-wrap-lines\"><span class=\"hljs-built_in\">Set-MailboxCalendarFolder<\/span> <span class=\"hljs-literal\">-Identity<\/span> user@domain.com:\\Calendar <span class=\"hljs-literal\">-DetailLevel<\/span> LimitedDetails <span class=\"hljs-literal\">-SearchableUrlEnabled<\/span> <span class=\"hljs-variable\">$false<\/span> <span class=\"hljs-literal\">-PublishEnabled<\/span> <span class=\"hljs-variable\">$true<\/span> <span class=\"hljs-literal\">-PublishDateRangeTo<\/span> SixMonths<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PowerShell<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">powershell<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>To Get Published Calendar Public URL<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PowerShell\" data-shcb-language-slug=\"powershell\"><span><code class=\"hljs language-powershell shcb-wrap-lines\"><span class=\"hljs-built_in\">Get-MailboxCalendarFolder<\/span> <span class=\"hljs-literal\">-Identity<\/span> user@domain.com:\\Calendar | FL Identity, PublishedCalendarUrl<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PowerShell<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">powershell<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>To Disable Calendar Publishing<\/strong><\/p><div id=\"vscry-0\" class=\"vscry-content\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-0201055796701118\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-client=\"ca-pub-0201055796701118\" \ndata-ad-slot=\"1379369629\" \ndata-ad-layout=\"in-article\"\ndata-ad-format=\"fluid\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PowerShell\" data-shcb-language-slug=\"powershell\"><span><code class=\"hljs language-powershell shcb-wrap-lines\"><span class=\"hljs-built_in\">Set-MailboxCalendarFolder<\/span> <span class=\"hljs-literal\">-Identity<\/span> user@domain.com:\\Calendar <span class=\"hljs-literal\">-DetailLevel<\/span> AvailabilityOnly <span class=\"hljs-literal\">-SearchableUrlEnabled<\/span> <span class=\"hljs-variable\">$false<\/span> <span class=\"hljs-literal\">-PublishEnabled<\/span> <span class=\"hljs-variable\">$false<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PowerShell<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">powershell<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Internet Calendars are calendars that can be published to the Internet where others can view or subscribe to them. We can make it easy to &hellip; <\/p>\n","protected":false},"author":1,"featured_media":391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,5,4],"tags":[113,114,33,52,9],"class_list":["post-390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-o365","category-ps","category-scripts","tag-calendar-publishing","tag-calendar-sharing","tag-exchange-online","tag-office-365","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Calendar Publishing Office 365 using PowerShell - VScrypt<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calendar Publishing Office 365 using PowerShell - VScrypt\" \/>\n<meta property=\"og:description\" content=\"Internet Calendars are calendars that can be published to the Internet where others can view or subscribe to them. We can make it easy to &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"VScrypt\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-15T21:08:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-21T20:06:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png\" \/>\n\t<meta property=\"og:image:width\" content=\"420\" \/>\n\t<meta property=\"og:image:height\" content=\"290\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vikram\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vikram\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\"},\"author\":{\"name\":\"Vikram\",\"@id\":\"https:\/\/www.vscrypt.com\/#\/schema\/person\/855a3e6d9310019d20f2da32115df36a\"},\"headline\":\"Calendar Publishing Office 365 using PowerShell\",\"datePublished\":\"2020-06-15T21:08:44+00:00\",\"dateModified\":\"2020-08-21T20:06:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\"},\"wordCount\":67,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.vscrypt.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png\",\"keywords\":[\"Calendar Publishing\",\"Calendar Sharing\",\"exchange online\",\"office 365\",\"powershell\"],\"articleSection\":[\"Office 365\",\"PowerShell\",\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\",\"url\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\",\"name\":\"Calendar Publishing Office 365 using PowerShell - VScrypt\",\"isPartOf\":{\"@id\":\"https:\/\/www.vscrypt.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png\",\"datePublished\":\"2020-06-15T21:08:44+00:00\",\"dateModified\":\"2020-08-21T20:06:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage\",\"url\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png\",\"contentUrl\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png\",\"width\":420,\"height\":290},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vscrypt.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calendar Publishing Office 365 using PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vscrypt.com\/#website\",\"url\":\"https:\/\/www.vscrypt.com\/\",\"name\":\"VScrypt\",\"description\":\"Helpful scripts, snippets and guides...\",\"publisher\":{\"@id\":\"https:\/\/www.vscrypt.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vscrypt.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vscrypt.com\/#organization\",\"name\":\"VScrypt\",\"url\":\"https:\/\/www.vscrypt.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vscrypt.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2019\/01\/logo-1.png\",\"contentUrl\":\"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2019\/01\/logo-1.png\",\"width\":200,\"height\":80,\"caption\":\"VScrypt\"},\"image\":{\"@id\":\"https:\/\/www.vscrypt.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.vscrypt.com\/#\/schema\/person\/855a3e6d9310019d20f2da32115df36a\",\"name\":\"Vikram\",\"description\":\"I am just an IT person trying to share as much knowledge as possible hoping someone will find it helpful. It just takes time to organize everything from my head into something that makes sense.\",\"url\":\"https:\/\/www.vscrypt.com\/author\/vchand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calendar Publishing Office 365 using PowerShell - VScrypt","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Calendar Publishing Office 365 using PowerShell - VScrypt","og_description":"Internet Calendars are calendars that can be published to the Internet where others can view or subscribe to them. We can make it easy to &hellip;","og_url":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/","og_site_name":"VScrypt","article_published_time":"2020-06-15T21:08:44+00:00","article_modified_time":"2020-08-21T20:06:44+00:00","og_image":[{"width":420,"height":290,"url":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png","type":"image\/png"}],"author":"Vikram","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vikram"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#article","isPartOf":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/"},"author":{"name":"Vikram","@id":"https:\/\/www.vscrypt.com\/#\/schema\/person\/855a3e6d9310019d20f2da32115df36a"},"headline":"Calendar Publishing Office 365 using PowerShell","datePublished":"2020-06-15T21:08:44+00:00","dateModified":"2020-08-21T20:06:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/"},"wordCount":67,"commentCount":0,"publisher":{"@id":"https:\/\/www.vscrypt.com\/#organization"},"image":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png","keywords":["Calendar Publishing","Calendar Sharing","exchange online","office 365","powershell"],"articleSection":["Office 365","PowerShell","Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/","url":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/","name":"Calendar Publishing Office 365 using PowerShell - VScrypt","isPartOf":{"@id":"https:\/\/www.vscrypt.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage"},"image":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png","datePublished":"2020-06-15T21:08:44+00:00","dateModified":"2020-08-21T20:06:44+00:00","breadcrumb":{"@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#primaryimage","url":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png","contentUrl":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2020\/06\/screen_shot_2016-03-03_at_17.23.101.png","width":420,"height":290},{"@type":"BreadcrumbList","@id":"https:\/\/www.vscrypt.com\/o365-calendar-publishing-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vscrypt.com\/"},{"@type":"ListItem","position":2,"name":"Calendar Publishing Office 365 using PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/www.vscrypt.com\/#website","url":"https:\/\/www.vscrypt.com\/","name":"VScrypt","description":"Helpful scripts, snippets and guides...","publisher":{"@id":"https:\/\/www.vscrypt.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vscrypt.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vscrypt.com\/#organization","name":"VScrypt","url":"https:\/\/www.vscrypt.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vscrypt.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2019\/01\/logo-1.png","contentUrl":"https:\/\/www.vscrypt.com\/wp-content\/uploads\/2019\/01\/logo-1.png","width":200,"height":80,"caption":"VScrypt"},"image":{"@id":"https:\/\/www.vscrypt.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.vscrypt.com\/#\/schema\/person\/855a3e6d9310019d20f2da32115df36a","name":"Vikram","description":"I am just an IT person trying to share as much knowledge as possible hoping someone will find it helpful. It just takes time to organize everything from my head into something that makes sense.","url":"https:\/\/www.vscrypt.com\/author\/vchand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/comments?post=390"}],"version-history":[{"count":0,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/posts\/390\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/media\/391"}],"wp:attachment":[{"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vscrypt.com\/api\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}