Forum Discussion
blue_man
Jun 07, 2020Iron Contributor
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 ...
- 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
}
blue_man
Jun 07, 2020Iron Contributor
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
}
- blue_manJun 08, 2020Iron ContributorThis worked