Forum Discussion

blue_man's avatar
blue_man
Iron Contributor
Jun 07, 2020
Solved

O365 Licensing Add Additional Service Plans via PowerShell

I am receiving the below error when running the below PowerShell command. I think this issue is because the user already has an E3 license with some service plans enabled. How do I enable additional ...
  • blue_man's avatar
    Jun 07, 2020

    actually would simply changing the foreach command to the below work?

     

    https://docs.microsoft.com/en-us/office365/enterprise/powershell/disable-access-to-services-with-office-365-powershell

     

    $Users | ForEach-Object {

    Set-MsolUserLicense -UserPrincipalName $_.UserPrincipalName -LicenseOptions $LicenseOptions

    }

Resources