I have a PowerShell script that goes through all the signed EXE, MSI, and DLL files on a system and extracts the signing certificates (x.509 CER Files). My goal is to import these CER files as certificate rules to my Software Restriction Policy GPO, preferably in an automated fashion (e.g. PowerShell script). I've looked through the PowerShell commandlets related to Group Policy, but there's nothing that looks useful for creating SRP rules of any kind.
So far, I have about 300 unique CER files that I'd really like to avoid importing one-by-one using the Group Policy Editor GUI. Can anyone give me advice on how I might automate this process, preferably as a PowerShell script.
So far, I have about 300 unique CER files that I'd really like to avoid importing one-by-one using the Group Policy Editor GUI. Can anyone give me advice on how I might automate this process, preferably as a PowerShell script.