How do I get a list of licensed users in Office 365 PowerShell?

How do I get a list of licensed users in Office 365 PowerShell?

Get Office 365 users with a specific license type via Powershell

  1. Connect to Office 365 via Powershell.
  2. Run Get-MsolAccountSku to get a list of the current licenses in your Office 365 tenant.
  3. Now you can edit this short script to get the users matching that license.

How do I find my o365 license?

Click Settings, and then under My app settings, choose Office 365. On the My account page, choose Subscriptions. You’ll see the services that you’re licensed to use, such as the latest desktop version of Office, SharePoint in Microsoft 365 or OneDrive for work or school, and Exchange Online.

How do I manage my Office 365 licenses?

In the Microsoft 365 admin center, go to the Billing > Licenses page. On the Licenses page, choose Microsoft 365 Apps for Education (device) or Microsoft 365 Apps for enterprise (device). On the next page, choose a subscription, then choose Assign licenses.

How do I know if PowerShell is connected to Office 365?

Verify Your Connection However, you can run the Get-MsolCompanyInformation cmdlet to verify you are connected to the correct Azure AD tenant. If PowerShell makes a successful connection using the AzureAD module, the window will display the connecting account, the environment, the tenant ID, and the tenant domain.

How does PowerShell connect to Active Directory?

Log in to Windows Server 2012 with a user account that has permission to access AD and open PowerShell from the icon on the desktop Taskbar. Type Import-Module ActiveDirectory in the PowerShell window and press Enter. Now we need to set the working location to the AD drive. Type Set-Location AD: and press Enter.

What is Microsoft 365 license?

Microsoft 365 is a per-user licensing option that includes Office 365, Windows 10 Enterprise, and Enterprise Mobility + Security. Microsoft 365 is available in two options, E3 and E5.

What is an Office 365 license?

In Office 365, licenses from licensing plans (also called SKUs or Office 365 plans) give users access to the Office 365 services that are defined for those plans. However, a user might not have access to all the services that are available in a license that’s currently assigned to them.

What is Office 365 Plan?

“Office 365″ refers to subscription plans that include access to Office applications plus other productivity services that are enabled over the Internet (cloud services), such as Lync web conferencing and Exchange Online hosted email for business, and additional online storage with OneDrive and Skype world minutes for home.”.