For the complete documentation index, see llms.txt. This page is also available as Markdown.

Unregister-DSLicense

Synopsis

Unregister a license or license package

Syntax

__AllParameterSets

Unregister-DSLicense -InputObject <PSLicenseInfo> [-AsLegacyResponse] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Description

Unregister a license or a license package. If the value OSC value differs from the license, the whole package will be deleted.

Examples

PS C:\> $licResponse = Get-DSLicence;
        $licRespones | Where -Property Status -eq Expired | Unregister-DSLicense

Remove all expired licenses

Parameters

-AsLegacyResponse

In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.

-Confirm

Prompts you for confirmation before running the cmdlet.

-InputObject

License to delete obtained from Get-DSLicense

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Notes

For more information, type "Get-Help Unregister-DSLicense -detailed". For technical information, type "Get-Help Unregister-DSLicense -full".

Last updated

Was this helpful?