Skip to content

Remove-VCFCommissionedHost

Synopsis

Decommissions a list of ESXi hosts.

Syntax

Remove-VCFCommissionedHost [-json] <String> [<CommonParameters>]

Description

The Remove-VCFCommissionedHost cmdlet decommissions a list of ESXi hosts.

Examples

Example 1

Remove-VCFCommissionedHost -json (Get-Content -Raw .\samples\hosts\decommissionHostsSpec.json)

This example shows how to decommission a list of ESXi hosts using a JSON specification file.

Sample JSON: Deommission ESXi Host(s)
[ {
    "fqdn": "sfo01-w01-esx01.sfo.rainpole.io"
},{
    "fqdn": "sfo01-w01-esx02.sfo.rainpole.io"
},{
    "fqdn": "sfo01-w01-esx03.sfo.rainpole.io"
},{
    "fqdn": "sfo01-w01-esx04.sfo.rainpole.io"
}]

Parameters

-json

Specifies the JSON specification to be used.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.