Global Defaults

Patch Remedy 5 is the next generation of the Plugins4Automate Patch Remedy family of products.
This forum is used to support Patch Remedy 5 only, if your using a previous version of Patch Remedy please see the forum for that version below.
Inside you will find the documentation project for the plugin were you can get insights on how to operate and use Patch Remedy 5.
Post Reply
NathanWilson
Posts: 20
Joined: Mon Jun 21, 2021 7:17 am
2

Global Defaults

Post by NathanWilson »

Hello!

Is there any way to set PatchRemedy defaults for all clients? I.e Feature Updates monthly on X day? I know we can do this per client but the plugin on our cloud hosted Automate is painfully slow, so I'd rather do this in one go if possible?

Also when I went through them all and changed weekly updates from the default of Sunday to Thursday it wouldn't apply and just reverted back to Sunday?

Finding it quite difficult to manage the enterprise without hand holding individual clients so hopefully I'm just missing a trick! :)

Kind Regards
Nathan

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Global Defaults

Post by Cubert »

You can do that via a simple script when your hosted or via SQLYog if hosted on premise.

Create a script that is one line lone. Use a single SQL Execute script function and place the following SQL query in function to execute.

Code: Select all

UPDATE `plugin_p4a_patch_remedy_agent` SET WUScheduleInterval = 'Weekly', WUScheduleDay = '3'

It will go and update all agents managed by patch remedy to do updates on Wednesdays. If you only want workstations and not servers as well then add to the end of that query the following extra code.

Code: Select all

WHERE OS NOT LIKE '%server%'


this will then only change the day of week for agents that do not have server in their OS titles.



As for the not saving settings issue, what version are you currently on for PR?

We are currently on 1.0.5.10 located here

https://delivery.shopifyapps.com/-/a033 ... 35fa38e8ca

NathanWilson
Posts: 20
Joined: Mon Jun 21, 2021 7:17 am
2

Re: Global Defaults

Post by NathanWilson »

Thanks Cuthbert!

When I checked in the Schedule upgrades it says Sunday, when when I check the device schedule in the plugin, where it shows OS info etc, it says Thursday so I guess its just the schedule element defaulting to sunday? Not the actual schedule itself.

Thanks for the script that's perfect, so eventually I think we're going to be doing firmware updates Thursdays weekly, and Feature updates once a month, is the feature update bit also achievable?

SET FUScheduleInterval = 'Monthly' I assume?

Many thanks!

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Global Defaults

Post by Cubert »

The above was for Windows updates, if your looking to do OS upgrades for all workstations running windows 10 then regularly then here is a simple script that if you set to execute once and only once per month on one agent only then it will schedule all OS 10 agents for OS Upgrades each time its run.

It schedules the agents for the next day at the same time script is run.

Example: You want to have all Windows 10 agents attempt an OS features upgrade on the 15th of the month at 10 PM. Then select a single agent and setup a schedule to execute this script once a month on the 14th at 10 pm. This will cause the script to schedule all windows 10 agents for upgrades.

Actually it will schedule all agents to do upgrades but the first line of upgrade script is to exit if not windows 10 or 11 so it will only run on windows 10 agents and not servers or lower OS versions. You can modify the SQL to filter out any OS types or other related info if you like. This script is to just show the basic example.


Modify as needed.

PatchRemedy5 Set Upgrade schedule.zip
(1.47 KiB) Downloaded 106 times

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Global Defaults

Post by Cubert »

If you wat to set the standard updates to monthly as well then change the "Weekly" to Monthly and the day of week becomes day of month so instead of 0-6 it can now be 1-30.

NathanWilson
Posts: 20
Joined: Mon Jun 21, 2021 7:17 am
2

Re: Global Defaults

Post by NathanWilson »

Hero! Thanks Cuthbert much appreciated :idea:

Post Reply

Return to “Patch Remedy 5”