Reg:: Error While Replacing Office-365 Licenses

Hi PowerShell Experts,

Greetings!!

Please help us for my scenario as below.

--> Our client requessted us to replace the "STANDARDWOFFPACK_STUDENT" and "OFFICESUBSCRIPTION_STUDENT" licenses with "STANDARDWOFFPACK_IW_STUDENT" license. Hence, we are trying to execute the below PS command to replace the licenses. During this process, we are getting the followed error screen always.

PS C:\Madhu> Get-MsolUser -MaxResults 1 | Set-MsolUserLicense -RemoveLicenses "orgname:STANDARDWOFFPACK_STUDENT", "orgname:OFFICESUBSCRIPTION_STUDENT" -AddLicenses "orgname:STANDARDWOFFPACK_IW_STUDENT"

Best Regards,

Madhu


May 27th, 2015 10:55pm

Did you follow the instructions?

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 12:18am

Hi Jrv,

Yes, i have cross checked the AccountSkuID and updated the script as below.

PS C:\>Get-MsolUser -MaxResults 1 | Set-MsolUserLicense -RemoveLicenses "orgname:STANDARDWOFFPACK_STUDENT", "orgname:OFFICESUBSCRIPTION_STUDENT" -AddLicenses "orgname:STANDARDWOFFPACK_IW_STUDENT"

But, unfortunately still I'm getting the same error.

Error:

Set-MsolUserLicense : The license "orgname:STANDARDWOFFPACK_IW_STUDENT is
not valid.  To find a list of valid licenses, please call the Get-MsolAccountSk
u cmdlet.
At line:1 char:49
+ Get-MsolUser -MaxResults 1 | Set-MsolUserLicense <<<<  -RemoveLicenses "orgname:STANDARDWOFFPACK_STUDENT", "orgname:OFFICESUBSCRIPTION_STUDENT
" -AddLicenses "orgname:STANDARDWOFFPACK_IW_STUDENT"
    + CategoryInfo          : OperationStopped: (:) [Set-MsolUserLicense], MicrosoftOnlineException
    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.InvalidUserLicenseException,Microsoft.Online.Administration.Automation.SetUserL
  icense

Could you please help us.

Best Regards,

Madhu

May 28th, 2015 3:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics