Office 365 license assignment

Automatic assignment of Office 365 licenses

Office 365 license assignment For a long time I have gotten into the habit of assigning Office 365 licenses with a small powershell function, very simple $bal = $global:username + "@" + $global:domaine Set-MsolUser -UserPrincipalName $bal -UsageLocation "FR" Set-MsolUserLicense -UserPrincipalName $bal -AddLicenses "XXXX:ENTERPRISEPACK" [string]$Consumedlicence = Get-MsolAccountSku | Where-Object AccountSkuId -EQ "XXXX:ENTERPRISEPACK" | select ConsumedUnits [string]$ActiveLicence = Get-MsolAccountSku | Where-Object AccountSkuId -EQ "XXXX:ENTERPRISEPACK" | select ActiveUnits Write-Host $Consumedlicence.split("=")[1].split("}")[0] "out of" $ActiveLicence.split("=")[1].split("}")[0] "licenses are affected" Unfortunately not everyone is familiar with PowerShell, I was asked to find an easier way to quickly dispatch Office 365 licenses to different users [Read More]