Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Replace E1 with E3 License
1. Create CSV File for user UPN, save as replace.csv in folder C:\CSV
UPN
jcruz@contoso.com
- Save script below as .PS1 file and run in powershell
Connect-MSOLService
$users = import-csv C:\csv\replace.csv -delimiter ","
foreach ($user in $users) { $upn=$user.UPN
Set-MsolUser -UserPrincipalName $upn
Set-MsolUserLicense -UserPrincipalName $upn -RemoveLicenses "contoso:STANDARDPACK" -AddLicenses "contoso:ENTERPRISEPACK" }
Read-Host -Prompt "Press Enter to exit"