SOLVED
Home

Set-MSOLUserLicense & STANDARDWOFFPACK_FACULTY - license invalid

%3CLINGO-SUB%20id%3D%22lingo-sub-23659%22%20slang%3D%22en-US%22%3ESet-MSOLUserLicense%20%26amp%3B%20STANDARDWOFFPACK_FACULTY%20-%20license%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-23659%22%20slang%3D%22en-US%22%3E%3CP%3ETrying%20to%20bulk-assign%20licenses%20to%20our%20%22Office%20365%20Education%20for%20Faculty%22%20subscription%20-%20the%20SKUID%20of%20which%20is%20STANDARDWOFFPACK_FACULTY%26nbsp%3B(see%20below)%20-%20this%20is%20failing%20though%20-%20message%20below.%20Is%20this%26nbsp%3B%20not%20possible%20with%20this%20SKUID%20%3F%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5Cian%26gt%3B%20Get-MsolAccountSku%3C%2FP%3E%3CP%3EAccountSkuId%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ActiveUnits%20WarningUnits%20ConsumedUnits%3CBR%20%2F%3E------------%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-----------%20------------%20-------------%3CBR%20%2F%3Edomain%3AOFFICESUBSCRIPTION_FACULTY%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20720%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%209%3CBR%20%2F%3Edomain%3ASTANDARDWOFFPACK_FACULTY%26nbsp%3B%26nbsp%3B%20500720%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20755%3CBR%20%2F%3Edomain%3APOWERAPPS_INDIVIDUAL_USER%26nbsp%3B%2010000%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%206%3CBR%20%2F%3Edomain%3APLANNERSTANDALONE%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20300000%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%203%3CBR%20%2F%3Edomain%3APOWER_BI_STANDARD%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201000000%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2029%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EPS%20C%3A%5Cian%26gt%3B%20Set-Msoluserlicense%20-UserPrincipalName%20user%40domain.com%20-Addlicenses%20%22domain%3ASTANDARDWOFFPACK_FACULTY%22%3CBR%20%2F%3ESet-Msoluserlicense%20%3A%20Unable%20to%20assign%20this%20license%20because%20it%20is%20invalid.%20Use%20the%20Get-MsolAccountSku%20cmdlet%20to%20retrieve%20a%20list%20of%20valid%20licenses.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Set-Msoluserlicense%20-UserPrincipalName%20user%40domain.com%20-Addlicen%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20CategoryInfo%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3A%20OperationStopped%3A%20(%3A)%20%5BSet-MsolUserLicense%5D%2C%20MicrosoftOnlineException%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20Microsoft.Online.Administration.Automation.InvalidUserLicenseException%2CMicrosoft.Online.Administration.Automation.SetUserLicense%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-23659%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Administration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-23844%22%20slang%3D%22en-US%22%3ERe%3A%20Set-MSOLUserLicense%20%26amp%3B%20STANDARDWOFFPACK_FACULTY%20-%20license%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-23844%22%20slang%3D%22en-US%22%3EExcellent%20post%20on%20how%20to%20enable%20individual%20license%20options%20here%20..%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fexitcodezero.wordpress.com%2F2013%2F03%2F14%2Fhow-to-assign-selective-office-365-license-options%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexitcodezero.wordpress.com%2F2013%2F03%2F14%2Fhow-to-assign-selective-office-365-license-options%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-23753%22%20slang%3D%22en-US%22%3ERe%3A%20Set-MSOLUserLicense%20%26amp%3B%20STANDARDWOFFPACK_FACULTY%20-%20license%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-23753%22%20slang%3D%22en-US%22%3E%3CP%3EYeah%20that's%20exactly%20the%20issue%2C%20thanks.%20I%20was%20hoping%20that%20for%20a%20user%20where%20all%20products%20within%20the%20SKU%20were%20not%20enabled%20-%20this%20would%20enable%20them%20all%20and%20leave%20untouched%20the%20ones%20that%20were%20already%20enabled%20IYSWIM.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-23751%22%20slang%3D%22en-US%22%3ERe%3A%20Set-MSOLUserLicense%20%26amp%3B%20STANDARDWOFFPACK_FACULTY%20-%20license%20invalid%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-23751%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20get%20the%20same%20error%20if%20the%20license%20is%20already%20applied%20to%20the%20user%2C%20so%20check%20for%20that.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Ian Moran
Regular Contributor

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

3 Replies
Highlighted
Solution

You can get the same error if the license is already applied to the user, so check for that.

Highlighted

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.

 

Highlighted