PublicKeyOnly Parameter (Export-Certificate Cmdlet)
Whether to export public key only.
Syntax
Export-Certificate -PublicKeyOnly SwitchParameter
Remarks
By default, when this cmdlet is called, the public, and private key will be written into a PFX file. To override this behavior, and export only the public key, specify this switch. To export the certificate into a different file format, use the CertificateOutputFormat configuration setting.
Default Value
false