Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-export-a-list-of-222288ab.
This script is used to export a list of users assigned a specific license in Office 365.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery