PublicKeyOnly Parameter (Export-Certificate Cmdlet)

Whether to export public key only.


Export-Certificate -PublicKeyOnly SwitchParameter


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


Copyright (c) 2021 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 7877]