Execute local command on remote servers until results are met

BatchPatch Forums Home Forums BatchPatch Support Forum Execute local command on remote servers until results are met

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12224
    doug
    Moderator

    Create a remote command in BP to add the desired registry key/value. The command could be a ‘reg add’ command like described here:

    Microsoft’s documentation for Reg Add

    Create a second remote command in BP to stop the desired service, e.g.

    WMIC SERVICE where caption='DNS Client' CALL stopservice

    Create a third remote command in BP to start the desired service, e.g.

    WMIC SERVICE where caption='DNS Client' CALL startservice

    Create a fourth remote command in BP to check the value of the registry entry, e.g.

    REG QUERY "HKLM\Software\Microsoft\.NETFramework" /v InstallRoot

    Then create a BatchPatch Job Queue that executes all of the four commands sequentially, with whatever desired wait periods you want added in between any of the steps that you want to wait.

    https://batchpatch.com/using-the-job-queue-in-batchpatch-for-multi-step-execution

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.