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

Set-DSUserLicense

Sinossi

Imposta le assegnazioni delle licenze

Sintassi

__AllParameterSets

Set-DSUserLicense -InputObject <PSLicenseAssignmentInfo[]> [-AsLegacyResponse] [<CommonParameters>]

Descrizione

Imposta le assegnazioni delle licenze. Per assegnare o annullare l'assegnazione di un utente a una licenza, modifichi il campo IsMember dell'utente desiderato.

Esempi

PS C:\> $AsLegacyResponse = $true
        $licResponse = Get-DSLicence;
        $license = $licRespones.Data | Where -Property License -like XXXXX* | Select -First 1
        $assignResponse = Get-DSUserLicense -InputObject $license
        $assignments = $assignResponse.Data
        $aUserAssignment = $asssignments | Where Name -eq 'Name of the user to assign'
        $aUserAssignment.IsMember = $true
        Set-DSUserLicense -InputObject $aUserAssignment

Assegna 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'attivazione di questo switch di compatibilità con le versioni precedenti consente agli script sviluppati per versioni anteriori di funzionare correttamente.

-InputObject

Assegnazioni utente a una licenza ottenute da Get-DSUserLicense

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.

Input

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSLicenseAssignmentInfo

Assegnazioni modificate ottenute da Get-DSUserLicense

Note

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

Ultimo aggiornamento

È stato utile?