Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Update Calendars

$
0
0

Does anyone know of a way to update Outlook Calendars and Shared Calendars using Powershell? The issue I have is that we are using Cached Mode and only have a certain number of Live Mode connections available. The shared calendars don't update in a timely manner so some have been complaining. I'm trying to figure out a way to code a refresh interval to fetch and update the calendars in the background. The calendars all update correctly when you run the Send and Receive All button, so is there method for this that I can incorporate? We are on Office 2016. I've tried using the code below, but it doesn't seem to do anything. Even setting the show progress bar to true, nothing happens. I've delved deeper in to the properties and have tried pulling my inbox and running the s&r command on that store and session as well with no luck. Any help, or is this a no go? Thanks in advance!

$o = New-Object -ComObject Outlook.Application
$mapi = $o.GetNamespace("MAPI")
$mapi.SendAndReceive($true)



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>