Skip to content

Remove HPOVLicense

Chris Lynch edited this page Sep 19, 2019 · 40 revisions

HPE OneView 5.00 Library

Remove-HPOVLicense

REmove installed licenses on the appliance.

SYNTAX

Remove-HPOVLicense [-InputObject] <HPOneView.Appliance.License> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet will remove licenses installed on the appliance. Removing installed licenses is only support via Windows PowerShell, Python or the HPE OneView REST API. However, if a license key is currently assigned to a resource, the license key cannot be removed.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.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.

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

Aliases Appliance
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

-InputObject <HPOneView.Appliance.License>

Aliases [-uri, -name, -License]

Provide the License URI or object to remove.

Aliases uri, name, license, Resource
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases wi
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

HPOneView.Appliance.License

HPE OneView License object

Return Values

System.Management.Automation.PSCustomObject

Success message

System.Management.Automation.ErrorRecord

Error message of in-use license key

Examples

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

$LicenseKeys = Get-HPOVlicense Remove-HPOVLicense -InputObject $LicenseKeys[0]

Get all installed licenses saving them to $LicenseKeys, then calling Remove-HPOVLicense to remove the first key in the variable.

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

Get-HPOVlicense | Remove-HPOVLicense

Get all installed licenses and remove them.

Related Links


HPE OneView 4.20 Library

Remove-HPOVLicense

REmove installed licenses on the appliance.

SYNTAX

Remove-HPOVLicense [-InputObject] <HPOneView.Appliance.License> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet will remove licenses installed on the appliance. Removing installed licenses is only support via Windows PowerShell, Python or the HPE OneView REST API. However, if a license key is currently assigned to a resource, the license key cannot be removed.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.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.

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

Aliases Appliance
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

-InputObject <HPOneView.Appliance.License>

Aliases [-uri, -name, -License]

Provide the License URI or object to remove.

Aliases uri, name, license, Resource
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases wi
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

HPOneView.Appliance.License

HPE OneView License object

Return Values

System.Management.Automation.PSCustomObject

Success message

System.Management.Automation.ErrorRecord

Error message of in-use license key

Examples

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

$LicenseKeys = Get-HPOVlicense Remove-HPOVLicense -InputObject $LicenseKeys[0]

Get all installed licenses saving them to $LicenseKeys, then calling Remove-HPOVLicense to remove the first key in the variable.

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

Get-HPOVlicense | Remove-HPOVLicense

Get all installed licenses and remove them.

Related Links


HPE OneView 4.10 Library

Remove-HPOVLicense

REmove installed licenses on the appliance.

SYNTAX

Remove-HPOVLicense [-InputObject] <HPOneView.Appliance.License> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet will remove licenses installed on the appliance. Removing installed licenses is only support via Windows PowerShell, Python or the HPE OneView REST API. However, if a license key is currently assigned to a resource, the license key cannot be removed.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.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.

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

Aliases Appliance
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

-InputObject <HPOneView.Appliance.License>

Aliases [-uri, -name, -License]

Provide the License URI or object to remove.

Aliases uri, name, license, Resource
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases wi
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

HPOneView.Appliance.License

HPE OneView License object

Return Values

System.Management.Automation.PSCustomObject

Success message

System.Management.Automation.ErrorRecord

Error message of in-use license key

Examples

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

$LicenseKeys = Get-HPOVlicense Remove-HPOVLicense -InputObject $LicenseKeys[0]

Get all installed licenses saving them to $LicenseKeys, then calling Remove-HPOVLicense to remove the first key in the variable.

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

Get-HPOVlicense | Remove-HPOVLicense

Get all installed licenses and remove them.

Related Links


Wiki Table of Contents

Clone this wiki locally