NAME

Remove-HPOVEnclosureGroup

SYNOPSIS

Remove an enclosure group.

SYNTAX

Remove-HPOVEnclosureGroup [-enclosureGroup] <Object> [-force <SwitchParameter>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Deletes an enclosure group from the appliance. An enclosure group cannot be deleted if any enclosures are currently part of that enclosure group.

PARAMETERS

-EnclosureGroup <Object>
The Enclosure Group object(s), name(s) or uri(s) to be removed from management.
Required? true
Position? named
Default value <none>
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-force <SwitchParameter>
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Confirm <SwitchParameter>
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Accepted

OUTPUTS

None.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\>$task = Remove-HPOVEnclosureGroup -enclosureGroup "My-EG" -force

Force-remove the enclosure group specifed by name. Wait for remove to complete.

-------------------------- EXAMPLE 2 --------------------------

PS C:\>$eg = Get-HPOVEnclosureGroup -name "My-EG"
PS C:\> Remove-HPOVEnclosureGroup $enclosureGroup -confirm:$false

Remove the enclosure group specifed by $eg. Disable confirmation prompt.

-------------------------- EXAMPLE 3 --------------------------

PS C:\>Get-HPOVEnclosureGroup | Remove-HPOVEnclosureGroup

Search for all enclosure groups and remove them from appliance.

Last edited Feb 18, 2014 at 2:56 AM by ChrisLynchHP, version 3