Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Support and General Questions (Enterprises Using ConfigMgr and Intune) => Topic started by: lorfo on June 27, 2020, 02:00:21 AM

Title: Want to skip updates of certain applications on certain devices
Post by: lorfo on June 27, 2020, 02:00:21 AM
Hi all

I have need to skip updates of Java on just certain devices.

At first, was going to just put the required devices into a device collections but with the Java updates being pushed via ADR this creates a manual overhead I don't want.

So was thinking that putting a file on the C:\ drive i.e. "$DO_NOT_UPDATE_JAVA.MARKER", if the update finds this file skip update.

If I create a PS script and place it into the pre-update script section what logic would I need to skip the update fully as I gather just an "if found exit" logic would just exit the current script not the actual update that is run in another script?

Hope this makes sense .. :-/

Thanks

Liam
Title: Re: Want to skip updates of certain applications on certain devices
Post by: Justin Chalfant (Patch My PC) on June 29, 2020, 05:07:23 AM
The best option for this would be to create an exclude collection for your deployment?
Title: Re: Want to skip updates of certain applications on certain devices
Post by: lorfo on June 29, 2020, 04:07:03 PM
Thanks for getting back to me but the complexity of doing this in the ADR update process is quite high.

I take it from that answer no simple way with PMP to "break" the update in code?

Thanks

Liam
Title: Re: Want to skip updates of certain applications on certain devices
Post by: Justin Chalfant (Patch My PC) on June 30, 2020, 12:15:44 PM
Quote from: lorfo on June 29, 2020, 04:07:03 PM
no simple way with PMP to "break" the update in code?
Not sure I follow this question?