O'Reilly logo

PowerShell for Office 365 by Prashant G Bhoyar, Martin Machado

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to change the license for existing users

Before assigning licenses to users, it is good practice to check how many licenses are available unless you remember this information off the top of your head.

To check available licenses, we need to use following cmdlet:

Get-MSolAccountSku

This cmdlet will return the list of SKUs your organization/company owns. As you may have noticed, there is no required parameter for this cmdlet. An optional parameter is TenantId.

[-TenantId <Guid>] specifies the unique ID of the tenant.

By default, if the TenantId is not specified, the cmdlet will use the ID of the current user. TenantId is applicable for partner users (users who are registered partners and manage multiple tenants).

This cmdlet returns the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required