First, enumerate the licence plans and create your own licence:
- Open Microsoft Online Services Module for Windows PowerShell and connect to the service
- $cred = Get-Credential
- Connect-MsolService -Credential $cred
- Get-MsolAccountSku | Format-Table AccountSkuId, SkuPartNumber
- The second column in this list is referenced in the next command as [SkuPartNumber]
- $ServicePlans = Get-MsolAccountSku | Where {$_.SkuPartNumber -eq "[SkuPartNumber]"}
- $ServicePlans.ServiceStatus
- This returns all the service plans
- $MyO365Sku = New-MsolLicenseOptions -AccountSkuId [tenantname:AccountSkuId] -DisabledPlans Comma_Seperated_List_From_ServicePlan_Output
- Set-MsolUser -UserPrincipalName user@domain.com -UsageLocation GB
- Set-MsolUserLicense -UserPrincipalName user@domain.com -AddLicenses [tenantname:AccountSkuId] -LicenseOptions $MyO365Sku
- Repeat for any other licences you want to apply for other users or other licence options you want to apply to this user.
Inside ENTERPRISEPACK Sku:
- OFFICESUBSCRIPTION (this is Office Professional Plus)
- MCOSTANDARD (this is Lync)
- SHAREPOINTWAC (this is Office Web Apps)
- SHAREPOINTENTERPRISE
- EXCHANGE_S_ENTERPRISE
- SHAREPOINTWAC
- SHAREPOINTDESKLESS
- EXCHANGE_S_DESKLESS
- EXCHANGE_S_ARCHIVE