KACE scripts running on computer start-up, reboot script with warning
Hello All,
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
color E0
c:\windows\system32\shutdown -r -f -t 90
ECHO.
ECHO.
ECHO.
ECHO YOUR PC IS SCHEDULED TO REBOOT IN 90 SECONDS AS PER POLICY!
ECHO.
ECHO PRESS ANY KEY TO ABORT REBOOT!
PAUSE >NUL
c:\windows\system32\shutdown -a
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
Attempts: 1
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.
Answers (2)
|
Comments:
-
Thanks a lot for the reply, I wasn't familiar with this and the info you listed is terrific. - roconnor 10 years ago