How to use PowerShell to look up licenses for a Microsoft Intune subscription

Symptoms
The information below describes how to use Windows PowerShell to determine the number of free and used Microsoft Intune licenses.
Resolution
To view the number of free and used licenses on a Microsoft Intune subscription, run the following PowerShell commands:
  1. From a PowerShell prompt, run $creds = Get-Credential
  2. A pop-up window will prompt for credentials. Enter your Microsoft Intune credentials.
  3. Run Connect-MsolService -Credential $creds
  4. Run Get-MsolAccountSku
A list of the Account ID, the Active Units and the Consumed Units will appear. Note that this will also display any Microsoft Office 365 licenses on the subscription.


Properties

Article ID: 3117663 - Last Review: 11/16/2015 06:28:00 - Revision: 1.0

Microsoft Intune

  • KB3117663
Feedback