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


The information below describes how to use Windows PowerShell to determine the number of free and used Microsoft Intune licenses.


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.


Article ID: 3117663 - Last Review: Nov 16, 2015 - Revision: 1