2019 TurtleDesk All Rights Reserved

Command to find out the license of O365 users using powershell

December 23, 2017

We used to get identify the O365 license of user from office365 admin center. There is also a way by which we can get it out using windows power shell. You only need to do below steps to get it export.


Step 1: Open "Microsoft Azure Active Directory for windows power shell"

Step 2: Connect to MSOL Service using below command




Step 3: Please use below command to get it export for individual user.


Get-MsolUser -UserprincipalName anand-r@****.com | Select DisplayName,Userprincipalname,islicensed,{$_.Licenses.AccountSkuid}


If you want to get export license for bulk user in your organization, please use below command


Get-MsolUser -All | Select-Object DisplayName, UserprincipalName, islicensed, {$_.Licenses.AccountSkuid} | Export-csv "ExportPath"



Share on Facebook
Share on Twitter
Please reload

Featured Posts

I was recently working with the customer on ADFS Upgradation from 2.0 - 4.0. This blog post will help you to design parallel infrastructure for ADFS 4...

ADFS 2.0 to 4.0

July 9, 2019

Please reload

Recent Posts

July 9, 2019

Please reload

Please reload

Search By Tags
Please reload

Follow Us