Skip to content

Remove HPOVServerProfile

Chris Lynch edited this page Jul 25, 2016 · 38 revisions

HPE OneView 2.00 Library

Remove-HPOVServerProfile

Delete profile(s).

SYNTAX

Remove-HPOVServerProfile [-ServerProfile] <Object> [-ApplianceConnection] <Object>[ [-force] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Delete one or multiple profiles.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases cf
Required? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Confirm <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-ServerProfile <Object>

Aliases [-profile, -uri, -name] The server profile object(s), name(s) or URI(s) to be removed.

Aliases cf
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-force <SwitchParameter>

Set to force-delete the profile. For example, force-remove will successfully remove the profile, even when connectivity has been lost to the server or enclosure.

Aliases cf
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)

Input Types

HPOneView.ServerPRofile [System.Management.Automation.PSCustomObject] Server Profile resource object

System.String Server Profile Name or URI

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] A task resource that can be monitored for status of the profile deletion.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource> Multiple task resources that can be monitored for status of the profile deletion.

Examples

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

PS C:\> $task = Remove-HPOVServerProfile -profile "Profile6" PS C:\> Wait-HPOVTaskComplete $task.uri

Remove the profile specifed by name. Wait for remove to complete.

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

PS C:\> $profile = Get-HPOVServerProfile -name "Profile2" PS C:\> Remove-HPOVServerProfile $profile -confirm:$false

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

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

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

Search for all profiles and remove them from appliance.

Related Links

Wiki Table of Contents

Clone this wiki locally