I have created a task in Task Scheduler for the Microsoft Sticky Notes app downloaded from the Microsoft Store, to open 30 seconds after I turn on my PC and enter the Desktop, but in order for this task to work I need to always remember to manually 'close all windows' of the Microsoft Sticky Notes app on my Taskbar before actually shutting down my PC.
If I don't manually 'close all windows' of the Microsoft Sticky Notes app that's on the taskbar - the very next time I turn on my PC and enter the Desktop the actual Sticky Notes I have on my Desktop launch instantly by default which is something I don't want. I only want the Sticky Notes to launch 30 seconds AFTER I turn on the PC and enter the Desktop.
In Registry Editor under: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\Notes > LaunchOnNextUserSession every time I modify the 'value data' to 0 it always resets to 1.
So is there a way to automate whenever I click: 'Shut Down' for the Microsoft Sticky Notes app to firstly 'close all windows' ever so shortly before the PC itself actually shuts down?
I tried following this guide but it did not work:
* Open the Task Scheduler application.
* Click on “Create Basic Task” on the right side of the Task Scheduler.
* Name your task and add a description if you wish. Click “Next”.
* For the trigger, select “When a specific event is logged”. Click “Next”.
* Under “Log:”, select “System”. Under “Source:”, select “User32”. Under “Event ID:”, input “1074”. This event ID corresponds to the shutdown event. Click “Next”.
* Select “Start a program” as the action. Click “Next”.
* In the “Program/script” box, input “taskkill”. In the “Add arguments” box, input “/IM StikyNot.exe /F”. This command will force close the Sticky Notes application. Click “Next”.
* Review the settings and click “Finish”.