DSCResources/CertificateExports/CertificateExports.schema.psm1
configuration CertificateExports { param ( [Parameter()] [Hashtable[]] $Certificates ) Import-DscResource -Module PSDesiredStateConfiguration Import-DscResource -Module CertificateDsc foreach ($cert in $Certificates) { $executionName = "certexport_$($cert.Path)" -replace '[\s(){}/\\:-]', '_' (Get-DscSplattedResource -ResourceName CertificateExport -ExecutionName $executionName -Properties $cert -NoInvoke).Invoke($cert) } } |