Forum Discussion

VBardV's avatar
VBardV
Copper Contributor
Nov 23, 2023

How do i change user's exchange license in bulk using csv?

Import-Csv "C:\bulk.csv" | ForEach-Object {Set-MgUserLicense -UserId $_.UPN -RemoveLicenses @("xxx") -AddLicenses @{}} Import-Csv "C:\bulk.csv" | %{Set-MgUserLicense -UserId $_.UPN -AddLicenses @{} ...

Resources