Aug 28 2023 05:33 PM
We have a detection and remediation script for a Toast notification to display on user machines, sending them an alert to restart their computers for better performance and stability reasons.
However, We have set it to check the devices at 09:30 am. It works perfectly fine, checks the devices at 09:30 and then sends user an alert to restart the computer after the user has logged in.
My question is, what if a user has restarted the computer at 09:45am and they still get the alert because the sync happened at 09:30am.
Any suggestions?
Aug 30 2023 12:43 AM
Sep 13 2023 11:46 AM - edited Sep 13 2023 11:46 AM
Modify your script to include a timestamp of the last restart time on each user's machine. You can use a registry entry, a file, or another system-specific method to store this information. This timestamp should be updated each time a user restarts their computer.