You can use the Get-MsolUser cmdlet to get all users. You can Where-Object to eliminate unlicensed users by checking the "isLicensed" property. I don't think the cmdlet returns the users alias, though.
PowerShell export licinesed user
MS
431
Reputation points
Hi,
Would you please provide the PowerShell script for exporting office 365 licensed users using the filter contains "RMB" in the alias?
Thanks in Advance.
Regards,
MS
Windows for business | Windows Server | User experience | PowerShell
Answer accepted by question author