Get in touch with us!

Enabling Enterprise Mobility Suite licenses via PowerShell

Last week i enabled a couple of users for Enterprise Mobility Suite and the SKU id is fairly simple, EMS. So its absolutely possible to add the EMS suite via PowerShell, in this case we wanted ALL users that had an Office 365 E3 licens to also get an EMS licens

 $EMSUsers = Get-MsolUser -all | Where-Object {$_.licenses[0].AccountSku.SkuPartNumber -eq "ENTERPRISEPACK" -and $_.IsLicensed -eq $True} $EMSUsers.count foreach ($eachuser in $EMSUsers){ Set-MsolUserLicense -UserPrincipalName $eachuser.UserPrincipalName -AddLicenses CHANGETOYOURTENANTNAME:EMS } 

Submit a Comment

Your email address will not be published. Required fields are marked *