PCFixAll.com

Office 365 User and License Report

The following will generate a report of all licensed users in Office 365. You will have to connect to Office 365 PowerShell environment prior to being able to run this script to generate your report.

Get-MSOLUser -All | select userprincipalname,islicensed,{$_.Licenses.AccountSkuId} | 
Export-CSV c:\userlist.csv -NoTypeInformation

 

  Posted by Admin in Blog Posts, Scripting, System Administration on November 13, 2017

Leave a Reply

Your email address will not be published. Required fields are marked *