So, in Office 365, how do you bulk assign licences to users.
I had a search around and could only really find examples using CSV file imports, what I wanted to do was pull the information in directly from Active Directory.
Whilst looking around I found the Get-ADUser cmdlet available through RSAT.
This cmdlet pulls out information from AD relating to accounts etc.
Using the -Filter command you can limit this to a specific OU.