This is a script that will pull events from Google Calendar and Print them out to the computers default printer.
- Creating a project with google cloud
- Enable the project to have access to Google Calendar
- Create a application account for the project
- Get certificate for application and store somewhere
- Sharing your calendar with the application account
- Creating the scheduled task on your computer/server
- Navigate to https://developers.google.com/workspace/guides/create-project and create a new project
- Enable Project to have access to the Google Calendar API
- Create credentials that the script will use
- Create a key for this user. It will be used by the script to authenticate with google. Keep the key and the password safe!
- Share you calendar with the Service Account you created
- Download the directory and unzip in desired directory.
- Update the "run.ps1" file with your correct arguments
- -certPath > the path to the certificate you downloaded from google
- -certPath > the password that was given to you for your certificate to work. For security it's better to store this value in an environment variable like "GoogleCertPasswood". To read about environment variables go here. How to change environment variables on Windows 10
- Create a new task in Task Scheduler for windows