Home » PowerShell: Assign Office 365 license en-mass

Last week I was tasked with the challenge of assigning a sharepoint only license from our Office 365 license pool to a large list of staff.

The following PowerShell script is what I came up with – I added the ability to prompt before assignment, just in case a UPN had slipped through my pre scripting filtering.

This script relies on a CSV file of user principal names, one column – titled UserPrincipalName


Currently, the script assigns a full set of 365 licenses, then removes all but the one the user requires – future plans are to just assign whats required.

Home » PowerShell: Assign Office 365 license en-mass



Page 1 of 11

14 queries in 1.184 seconds.