NAME

Remove-HPOVEnclosure

SYNOPSIS

Removes an enclosure and associated devices.

SYNTAX

Remove-HPOVEnclosure -enclosure <Object> [-force <SwitchParameter>] [<CommonParameters>]

DESCRIPTION

Removes an enclosure, its servers, and interconnects from appliance management

PARAMETERS

-enclosure <Object>
Aliases [-name, -uri]
The Enclosure object(s), name(s) or uri(s) to be removed from management.
Required? true
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters? false
-force <SwitchParameter>
Set to force-remove the enclosure.
For example, if the enclosure is gone or is now being managed by a different appliance, force-removing will remove the enclosure from this appliance without clearing vcmode.
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

None. You cannot pipe objects to Remove-HPOVEnclosure.

OUTPUTS

Removal task.

RELATED LINKS

EXAMPLES

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

PS C:\> $task = Remove-HPOVEnclosure -enclosure "Enclosure-1234" -force
PS C:\> Wait-HPOVTaskComplete $task.uri
				
Force-remove the enclosure specifed by name. Wait for remove to complete.

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

PS C:\> $enclosure = Get-HPOVEnclosure -name "Profile2"
PS C:\> Remove-HPOVEnclosure $enclosure -confirm:$false

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

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

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

Search for all enclosures and remove them from appliance.

Last edited Dec 31, 2013 at 5:24 AM by ChrisLynchHP, version 2