Why is powershell so crap. I have been sat here for hours so far, trying to run
$nostustuff =new-msollicenseoptions –accountskuid NameOfSchool:STANDARDWOFFPACK_STUDENT –disabledplans SHAREPOINTWAC_EDU,SHAREPOINTSTANDARD_EDU,MCOSTANDARD
yes I changed the NameofSchool
get-msoluser -all | where-object {($_.islicensed -ne "True") -and ($_.department -eq "Student")}| set-msoluserlicense –licenseoptions $nostustuff
keep getting
Set-MsolUserLicense : Unable to assign this license because the license options are invalid.
At line:1 char:118
+ get-msoluser -all | where-object {($_.islicensed -ne "True") -and ($_.department -eq "Student")}| set-msoluserlicense <<<< -licenseoptions$nostustuff + CategoryInfo : OperationStopped: ( [set-MsolUserLicense], MicrosoftOnlineException +FullyQualifiedErrorId :Microsoft.Online.Administration.Automation.InvalidUserLicenseOptionException,Microsoft.Online.Administration.Automation.SetUserLicense
any one got any ideas?
Paul