Data dictionary? Launch OS Upgrade via scripting?

Support and question forum for Patch Remedy 4 WUA plugin for LabTech. This plugin was retired on 06/01/2022. All new Patch Remedy 5 is now the current plugin. This forum is for retaining the old posts for Patch Remedy 4.
Post Reply
NCCShipley
Posts: 10
Joined: Wed May 27, 2020 2:31 pm
3

Data dictionary? Launch OS Upgrade via scripting?

Post by NCCShipley »

Hi all - anyone have a data dictionary or table layout for the Patch remedy tables? I need to write some scripts based on data I find in the OS Upgrade Log, like if it says "failed to download ISO" then I want a script that will check the hash of a windows ISO in the appropriate folder for validation, then if it's not valid (or existent), download the appropriate .ISO from our s3 bucket.

I would also like to launch the OS Upgrade script via scripting instead of just the Patch Remedy interface. How can I call that correctly from my own Automate script to imitate "Attempt OS Upgrade now"? Too many systems to update for this PrintNightmare mitigation (many systems were still at 1909 and 1903) for us to manually push things through PatchRemedy - though we don't mind on smaller scales.

NCCShipley
Posts: 10
Joined: Wed May 27, 2020 2:31 pm
3

Re: Data dictionary? Launch OS Upgrade via scripting?

Post by NCCShipley »

We are cloud hosted by ConnectWise, so I don't have direct access to the databases on our Automate server.

NCCShipley
Posts: 10
Joined: Wed May 27, 2020 2:31 pm
3

Re: Data dictionary? Launch OS Upgrade via scripting?

Post by NCCShipley »

I was able to leverage the Report Designer in Automate to discover the data fields and do a little exploration in the data available from the plugin. For those interested the tables all begin with the same prefix: plugin_sw_patch_remedy

Still could use to figure out how to launch the Patch Remedy OS Upgrade via my own scripting, but at least I can manipulate the data in it now to set up systems to upgrade at the configured day/time of night and ensure the best chance of success without having to manually work around the interface.

NCCShipley
Posts: 10
Joined: Wed May 27, 2020 2:31 pm
3

Re: Data dictionary? Launch OS Upgrade via scripting?

Post by NCCShipley »

I think I answered my own question about launching OS upgrade module from Patch Remedy via my own scripting.

First, set the value of a variable @MYCMD@ to WIN10OSUPGRADE, then launch Patch Remedy Maintenance function.

That lets me keep the configuration aspects from the GUI, but I can launch it quick as a result of my own scripting

Post Reply

Return to “Patch Remedy for LabTech (Patch Remedy 4) Retired”