Remove-VITrustedCertificate Command | Vmware PowerCLI Reference

Remove-VITrustedCertificate

This cmdlet removes one or more certificates or certificate chains from the vCenter Server or ESXi trusted stores.

Syntax

Remove-VITrustedCertificate
-VITrustedCertificate < TrustedCertificateInfo[] >
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VITrustedCertificate TrustedCertificateInfo[] named
  • pipeline
Specifies one or more certificate/entity object(s) of the certificate(s) you want to remove. Note: You must use the Get-VITrustedCertificate cmdlet to obtain one or more certificate/entity object(s). The object returned by Get-VITrustedCertificate is a pair of the certificate and the vCenter Server or ESXi entity that trusts the certificate.

Output

Examples

Example 1

Get-VITrustedCertificate -VMHost "MyESXi" | `

Where-Object { $_.Certificate.Thumbprint -eq "6B953A0738FD...4BD263BEB0" } | ` Remove-VITrustedCertificate Removes a certificate with the thumbprint "6B953A0738FD...4BD263BEB0" from the ESXi host called "MyESXi".

Related Commands

VITrustedCertificate

This cmdlet adds a certificate or certificate chain to the vCenter Server or ESXi trusted stores.

This cmdlet retrieves information about the trusted certificates in a vCenter Server environment.

This cmdlet removes one or more certificates or certificate chains from the vCenter Server or ESXi trusted stores.