Release-MBSAPILicense


Release a license's association with a specified user.

Release-MBSAPILicense
        [-LicenseID] <String>
        [-UserID] <String>
        [[-ProfileName] <String>]
        [<CommonParameters>]

Description

Calls the POST api/Licenses/Release API to remove the association of a license to a user. This action also removes the license from the computer it is assigned to.


Examples

Example 1:

PS C:\> Release-MBSAPILicense -ProfileName ao -LicenseID 8fc593d1-bb74-4a52-a644-0a574967df83 -UserID e472840f-e01f-40e0-95fc-b28882a28cfe

Parameters

-LicenseID

ID of the license to release. Use Get-MBSAPILicenses to determine.

Type String
Required: true
Position 1
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-UserID

ID of the user the license is associated with. Use Get-MBSAPIUser to determine.

Type String
Required: true
Position 2
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-ProfileName

Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)

Type String
Required: false
Position 3
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.

Notes

Author: Andrey Oshukov