KACE Product Support Question
KACE scripts running on computer start-up, reboot script with warning
We just started using KACE as a major appliance at our group and I've been tasked with getting it up to speed so I'm very new at this. One of the first things we wanted to do was reboot all PCs running Dragon at 4am every morning with a warning for the user to abort should they be on the PC. So I wrote the following batch:
@echo OFF >NUL
TITLE Scheduled Nightly Reboot
c:\windows\system32\shutdown -r -f -t 90
ECHO YOUR PC IS SCHEDULED TO REBOOT IN 90 SECONDS AS PER POLICY!
ECHO PRESS ANY KEY TO ABORT REBOOT!
I have it running with the following settings:
Deploy to label : Dragon Reboot List (All PCs with the Dragon Client)
Scheduling: Run Every day at 4:00
Allow Run While Disconnected
Allow Run While Logged Off
Dependencies: Reboot Batch listed above
The script works fine for all PCs that are up and running at 4am, the issue occurs at start-up for any PCs that were turned off; a number of them are running the script at start-up and rebooting first thing. When I did a run now to my PC of the script when it was off it did not reboot on start up, I got the error message in the log: "Script could not be pushed because machine was not connected." I'm not sure what is causing the discrepancies, I thought scripts would fail every time when pushed to an off machine. Any help would be greatly appreciated and thank you to anyone who took to the time to read this and assist.
Community Chosen Answer