Assign M365 licence via PowerShell - Set-MsolUserLicense - Invalid

TassieTrooper 16 Reputation points
2020-08-24T06:14:36.65+00:00

Hi,

I am trying to assign a M365 Business Premium licence via PS using "Set-MsolUserLicense -UserPrincipalName \

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,282 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dominique Pollard 46 Reputation points
    2020-08-24T07:04:37.197+00:00

    I would try this format:

    Set-MsolUserLicense -UserPrincipalName "<Account>" -AddLicenses "<AccountSkuId>"

    Run the Get command on a licensed user to get the SkuId

    Mark as answered if this reply is helpful

    1 person found this answer helpful.
    0 comments No comments