Using a Custom Configuration Policy to Deploy a Patch My PC Certificate

Applies to: Patch My PC Cloud

Overview

A custom configuration policy is the recommended method for deploying Patch My PC (PMPC) code-signing certificates to Intune-managed devices.

This method installs the Patch My PC public code-signing certificate into the local Trusted Publishers certificate store on targeted devices. This allows PowerShell to trust scripts and modules signed by Patch My PC when an AllSigned execution policy is used.

In environments using Windows Defender Application Control (WDAC), AppLocker, or similar application control policies, additional policy configuration may also be required to trust or allow the relevant Patch My PC signer.

The steps below use a custom configuration profile in Intune. For each certificate, the profile creation process is the same, but the OMA-URI and Base64-encoded certificate value are different.

Choose the Certificate(s) to Deploy

Patch My PC uses separate code-signing certificates for different signed components. Select the certificate that matches the content you need devices to trust, then use the corresponding tab in the Create a Custom Configuration Profile section.

circle-exclamation

Create a Custom Configuration Profile

Follow the steps below to create a custom configuration profile in Intune. The profile settings are the same for each Patch My PC code-signing certificate, but the OMA-URI and Base64 certificate value are different for each certificate.

“Create a Profile” tab

Field
Value

Platform

Windows 10 and later

Profile type

Templates > Custom

“Basics” tab

Field
Value

Name

A descriptive name for the policy. E.g. “Patch My PC Cloud Trusted Publisher Certificate”`

Description

Enter an optional description for the policy

“Configuration Settings” tab

circle-info

Note

The OMA-URI is built using the certificate thumbprint value. When deploying a different Patch My PC certificate, make sure the thumbprint in the OMA-URI matches the certificate you are deploying.

Field
Value

Name

Enter a descriptive name for the OMA-URI setting e.g. “Patch My PC Cloud Trusted Publisher Certificate”

Description

Enter an optional description for the policy

OMA-URI

./Device/Vendor/MSFT/RootCATrustedCertificates/TrustedPublisher/E2806E45DDA692221BED082D072BAF5973FBC466/EncodedCertificate

Data type

String

Value

MIIHSTCCBTGgAwIBAgIQCCFR6ulgpnd5CTnQhq7j0TANBgkqhkiG9w0BAQsFADBpMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORGlnaUNlcnQsIEluYy4xQTA/BgNVBAMTOERpZ2lDZXJ0IFRydXN0ZWQgRzQgQ29kZSBTaWduaW5nIFJTQTQwOTYgU0h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n1U8bCzHg5Qc+Xy1Y6Ybx6MYLvFALS3Q++Rc05INimwTgM8F0PW9Ch7g88zXwad3p0CJrXdfU/b3SdLEcf2e62qM+//+15aVIuClYeam8oC58q+Rfefn5eG3hKpyHzmQdzlSpVbR/9eRRO2kXESPuAL7Xo0sZW8IVSRtM

“Scope tags” tab

Configure as required.

“Assignments” tab

Assign the configuration template to the desired Entra ID group(s).

“Applicability Rules” tab

Configure any desired applicability rules.

“Review + create” tab

Double-check everything before clicking Create.

Post Processing

Once the client processes the policy, the certificate appears as follows in its Trusted Publishers store.

How the certificate appears in a clients “Trusted Publishers” store

Double-clicking the certificate allows you to see its properties.

Properties of the certificate

Last updated

Was this helpful?