I have been running into some trouble with offline reboots targeting laptops. The goal is for an example: "reboot Saturday morning at 6 am regardless if the device is connected to our k1000 or not. Now if you miss this reboot window (ex: device was asleep or hibernating), then reboot asap after the device is powered on."
I seem to not be able to force this kind of reboot at all with kace. I already know the script will work with an online script or via CMD, so it cant be the syntax of the commands. Just doesn't seems to pop as an offline script. Any ideas? xml of the script below
<?xml version="1.0" encoding="utf-8" ?>
<config name="!TEST- Reboot@ testing" type="job" id="1129" version="1516297757" description="testing reboot issues ">
<execute disconnected="true" logged_off="true">
<verify on_failure="break" attempts="1">
<file_exists path="C:\Windows\System32" file="shutdown.exe" />
<launch_program path="%WINDIR%\System32" program="shutdown.exe" wait="false" parms="/r /f /c "Your device will reboot in 2 minutes to complete Microsoft updates. Please save your work now." /t 120" />
<log_message type="status" message="DOS reboot command excuted on system via kace" />
<log_message type="status" message="[ERROR] DOS reboot command unavailable." />
Please log in to answer
Posted by: JasonEgg 3 years ago
Your script worked perfectly in my environment. I copy/pasted the XML, set a scheduled time, targeted a computer, and forced a check-in on that device. At the designated time, the notification displayed and two minutes later the computer restarted. I tested with the computer both connected and disconnected from the internet.
What are your settings in Settings > Provisioning > Communication Settings under "Scripting Update"?