Powershell Question

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9238
    Matthew Dartez
    Participant

    Has anyone ever written a script that would invoke batchpatch? Just curious – I want to write a script in powershell that opens batchpatch, adds servers to it and executes certain commands/opens a BPS file/etc.

    #11313
    doug
    Moderator

    You can programmatically launch a .bps file with a command like this:

    batchpatch.exe “C:filesyourFile.bps”

    You won’t be able to directly execute commands in BatchPatch from the powershell script, but you can set BP to start with the scheduler enabled (Tools > Settings > Startup options > Enable Task Scheduler on startup), and then it will execute whatever scheduled tasks you have configured in that .bps file.

    Alternatively you may run BP as a service to ensure that scheduled tasks in BP execute regardless of whether or not someone is logged on to the computer. (Tools > Run BatchPatch as a service)

    -Doug

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