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

Get-DSLicense

Sinossi

Ottiene tutte le licenze, tranne quella del server

Sintassi

__AllParameterSets

Get-DSLicense [-AsLegacyResponse] [<CommonParameters>]

Descrizione

Ottiene tutte le licenze, tranne quella del server. Per ottenere gli utenti che sono stati assegnati a una licenza specifica, utilizzi il cmdlet Get-DSUserLicense.

Esempi

Esempio 1

PS C:\> $licenses = Get-DSLicence

Ottenere tutte le licenze, tranne quella del server

Esempio 2

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

Rimuovere tutte le licenze scadute

Esempio 3

Assegnare la licenza che inizia con XXXXX all'utente 'Name of the user to assign'

Parametri

-AsLegacyResponse

Nelle versioni precedenti alla 2024.2, molti cmdlet DS restituivano un oggetto ServerResponse. L'abilitazione di questo switch di retrocompatibilità consente agli script sviluppati per le versioni precedenti di funzionare correttamente.

CommonParameters

Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction e -WarningVariable. Per maggiori informazioni, veda about_CommonParameters.

Note

Per maggiori informazioni, digiti "Get-Help Get-DSLicense -detailed". Per informazioni tecniche, digiti "Get-Help Get-DSLicense -full".

Ultimo aggiornamento

È stato utile?