Detect Reboot

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10984
    doug
    Moderator

    Hi Andreas – Thank you for the suggestion.

    There is currently an option to “Get pending reboot status,” but yes, we will also plan on adding an additional action to “Check pending reboot status + reboot if required.”

    With regard to your second question, the job queue has two options:

    “Wait for host to be detected online”

    “Wait for host to go offline and come back online”

    I think that one of these options should be sufficient for your needs. And once we add “Check for pending reboot status + reboot if required” I think you will be covered on all ends. If not, please explain in more detail why they are not sufficient and what *would* be sufficient, so that I can better understand how we might improve things.

    Thanks,

    Doug

    #10921
    Andreas
    Participant

    I guess the option “Check for pending reboot status + reboot if required” would be exactly what I need 🙂

    thank you already

    EDIT: By the way, with this command I can already determind if there is a reboot pending and reboot the maschine if nessaary:

    cmd /c REG QUERY “HKLMSOFTWAREMICROSOFTWINDOWSCurrentVersionWindowsUpdateAuto UpdateRebootRequired” > NUL && shutdown -r -f -t 0 || goto END

    #10922
    doug
    Moderator

    Thanks for sharing that command. I’m glad you have a workaround for the time being.

    When BatchPatch detects if reboot is pending, it looks at that same key PLUS 3 other tests. Windows does not have a single consistent/reliable way to determine pending reboot, so to be as thorough as possible BP performs 4 different checks to make the most reliable determination.

    The “check for pending reboot + reboot if required” action will be in the next published release, which will probably be in approximately 6 to 8 weeks from now.

    Thanks,

    Doug

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.