Filling your calendar for the week, increase productivity! Mileage may vary

I like to ensure my calendar gets filled for the next week, this way I know what is happening and it is hard to book a last minute meeting to surprise me. I guess this is a productivity hack. If you book more than a week out then you can take whatever time you want that is open.

Ideally no one books last minute but they do and it is really annoying to deal with. Just call me!!

Anyway here is a PowerShell script to block out your calendar for the next week using the Outlook COM API locally. I’m sure I can do the same with rest but I am not up for doing OAuth in PowerShell today. The code is not clean and tidy and has issues which I could fix if I could be bothered but it meets MVP. Feel free to suggest updates.


I’m a principal engineer working at Microsoft. I have run and supported services for over twenty years and worked in multiple countries. I love working with passionate people and new technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.