Share via

Problem with Windows 11 Task Schededuler

John Pike 0 Reputation points
2023-12-26T18:00:56.0766667+00:00

I have written several programs to that synchronize a SQL Server calendar with my office 365 calendar.  The first program deletes all of the events from my Outlook Calendar, next program copies everything into my Outlook Calendar for the first time.  The next program synchronizes my calendar based on the created and modified dates on the original SQL Server calendar.  The synchronize program has to be run on a constant basis to make sure that the calendars are in sync.  For that reason, I have created a task scheduler event to run this every 5 minutes.  I can run the program manually and it runs fine.  When I set it up in the task scheduler to run as myself every 5 minutes, the task history states that it is running however, the logs in my program and the update to a field in the database to record the last synchronized time are showing it is not running.  Any ideas?

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Graph
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. John Pike 0 Reputation points
    2023-12-29T10:04:49.4366667+00:00

    I have a log file that gets written to when the application is executed. I also update a datetime field in a table in SQL Server upon completion of the task. This is the timestamp of the last synchronization between the SQL Server Calendar and the Outlook calendar. These all work fine when I run the application manually. This application is literally an executable, no arguments.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.