Hi
This may or not be in the right place.
I am new to the delights of Powershell. So a little bg info
I was given the delightful task of syncing our AD with Office365, having had no training in Office365 this task was daunting to say the least as a friend in another school wiped his AD.
To cut a long story short, all was hunkydory, all staff and students synced.
Now to the fun part, giving our students Licenses. For months I was looking to be able to do this in bulk rather than 20 kids at a time, when I stumbled on a script written by Nathan O'Bryan (http://www.mcsmlab.com ). It was a revelation, it did exactly what I wanted it to do as our students are named by year they started i.e 16?????@???????????.com.
Recently we updated our subscriptions to be able to give them email addresses , but not to give them all plans involved with the subscription, after a long and harduous search I once again stumbled on a gem from Todd Klindt (Using PowerShell to Specify License Plans in Office 365 - Todd Klindt's SharePoint Admin Blog) with a little tweaking for what I wanted this worked fantastically until very recently when Microsoft in their infinite wisdom giveth and taketh away.
I am having a little trouble getting this small script to work with AzureADs commandlets "Get-MsolUser –SearchString ?? | Set-MsolUser –UsageLocation GB | Set-MsolUserLicense –AddLicenses myschool:STANDARDWOFFPACK_STUDENT -LicenseOptions $opts"
Is there anyone out there who could point me in the right direction?
Many thanks
Lee