Oct 20 2016
08:08 AM
- last edited on
Feb 07 2023
08:02 PM
by
TechCommunityAP
Oct 20 2016
08:08 AM
- last edited on
Feb 07 2023
08:02 PM
by
TechCommunityAP
Trying to bulk-assign licenses to our "Office 365 Education for Faculty" subscription - the SKUID of which is STANDARDWOFFPACK_FACULTY (see below) - this is failing though - message below. Is this not possible with this SKUID ??
PS C:\ian> Get-MsolAccountSku
AccountSkuId ActiveUnits WarningUnits ConsumedUnits
------------ ----------- ------------ -------------
domain:OFFICESUBSCRIPTION_FACULTY 0 720 9
domain:STANDARDWOFFPACK_FACULTY 500720 0 755
domain:POWERAPPS_INDIVIDUAL_USER 10000 0 6
domain:PLANNERSTANDALONE 300000 0 3
domain:POWER_BI_STANDARD 1000000 0 29
PS C:\ian> Set-Msoluserlicense -UserPrincipalName user@domain.com -Addlicenses "domain:STANDARDWOFFPACK_FACULTY"
Set-Msoluserlicense : Unable to assign this license because it is invalid. Use the Get-MsolAccountSku cmdlet to retrieve a list of valid licenses.
At line:1 char:1
+ Set-Msoluserlicense -UserPrincipalName user@domain.com -Addlicen ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Set-MsolUserLicense], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidUserLicenseException,Microsoft.Online.Administration.Automation.SetUserLicense
Oct 20 2016 12:33 PM
SolutionYou can get the same error if the license is already applied to the user, so check for that.
Oct 20 2016 12:40 PM
Yeah that's exactly the issue, thanks. I was hoping that for a user where all products within the SKU were not enabled - this would enable them all and leave untouched the ones that were already enabled IYSWIM.
Oct 20 2016 04:44 PM
Oct 20 2016 12:33 PM
SolutionYou can get the same error if the license is already applied to the user, so check for that.