PowerCLI Reference

vSphere Auto Deploy Reference

Remove-CustomCertificates

Synopsis

Remove custom host certificate.

Syntax

[-CertIds] int[] [-HostIds] string[] [CommonParameters]

Related Commands

Add-CustomCertificates
Get-CustomCertificates

Detailed Description

Remove a set of custom host certificates from Autodeploy. The certificate entries will be deleted from the database and the certificate files will be removed from the filestore. Hosts that have already booted up with a custom certificate need to be rebooted to be generated a new certificate from Autodeploy. At least one of CertIds or HostIds must be given. You must have the "AutoDeploy.Rule.Delete" privilege on the root folder of vCenter Server to use this cmdlet.

Parameters

Name Type Description Required? Pipeline Input Default Value
CertIds int[] The IDs of the certificate entries to remove. These can be retrieved with Get-CustomCertificates. false false
HostIds string[] The Host IDs for which custom certificates will be removed. A Host ID is either a MAC address or a UUID. false false

Return Type

Notes

Examples

-------------- Example 1 --------------

C:\PS> Remove-CustomCertificates -HostIds "00:A0:C9:14:C8:29","00:A0:C9:14:C8:30"

Remove the custom certificates associated with hosts with the given MAC addresses.

-------------- Example 2 --------------

C:\PS> Remove-CustomCertificates -CertIds 1,2

Remove custom certificates with ID 1 and 2.


Copyright © 1998 - 2018 VMware, Inc. All rights reserved.