Jan
14
2018
PowerShell

PowerShell: Dynamic generation of an iCal/vCalendar (ICS) format file

Generating your own custom calendar or event invites in the iCal (vCalendar) format is pretty easy, once you’ve read the 140+ page spec. Actually, it’s a pretty complex but flexible way to build schedule items. Just think about the possibly combinations that exist when you create a new meeting request or appointment in Outlook or your preferred calendar application. You get recurrences, descriptions, summaries, invitees, location, start time, end time, all-day…. and the list goes on and on. For this example, we’ll keep it simple and walk through building a function for an event with a yearly recurrence; something like a birthday or an anniversary. The first part of this function is going to put together some of variables for building out the ICS file. In this case, the function is going to ask for input for all the fields. To truly automate, you’ll want to suck this information in…

About JB

I’ve been a technologist for over 20 years, getting my start in IT with a large Fortune 100 international retailer in the 1990s. I love to talk about new technology, mobile devices, software development, photography, and the weather. The opinions expressed on this website are my own.

Follow me