https://www.mikesel.info/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.




Page 1 of 11

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Categories

* = required field

powered by MailChimp!