Remove-OVEnclosure
Syntax
Remove-OVEnclosure
[-InputObject] <Object>
[-ApplianceConnection] <Array>
[-Force]
[<CommonParameters>]
Description
Removes an enclosure, its servers, and interconnects from appliance management
Examples
Example 1
Remove the enclosure specifed by $enclosure. Disable confirmation prompt.
Example 2
Search for all enclosures and remove them from appliance.
Parameters
-InputObject <Object>
The Enclosure object(s) or name(s) to be removed from management.
| Aliases | uri, name, Enclosure, Resource |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-ApplianceConnection <Array>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| 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.
When the request is accepted by the appliance, it does not return an Async Task Resource.
| Aliases | None |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | False |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
| Aliases | wi |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Confirm <SwitchParameter>
| Aliases | cf |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | |
| 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)
Input Types
Collection of Enclosure Resources
Single Enclosure resource object
Return Values
Removal async task
When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource