Skip to content

Set-HVInstantCloneMaintenance

SYNOPSIS

Enable or disable instant clone maintanence mode

SYNTAX

Set-HVInstantCloneMaintenance [-VMHost] <String> [-Enable] [-Disable] [-HvServer <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Toggles a host in instant clone maintanence mode. Specify the VMHost name and enable or disable to toggle.

EXAMPLES

EXAMPLE 1

-Enable $true

Set-HvInstantCloneMaintenance -VMHost \<hostname> -Disable $true

PARAMETERS

-VMHost

ESXi Host name to modify the InstantClone.Maintenance attribute

Type: String
Parameter Sets: (All)
Aliases:

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

-Enable

Enable Instant Clone maintenance mode.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Disable

Disable Instant Clone maintenance mode

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-HvServer

{ Fill HvServer Description }

Type: Object
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

CommonParameters

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

INPUTS

OUTPUTS

NOTES

Author Jack McMichael
Author email @jackwmc4 / jackwmc4@gmail.com
Version 1.0

===Tested Against Environment==== | | | |-|-| | Horizon View Server Version | 7.6 | | PowerCLI Version | PowerCLI 11 | | PowerShell Version | 5.1 |