Hello
I just created my own script to automate some things.
I have just one question that I can't solve:
This is my csv:
UserPrincipalName,DisplayName,Password,UsageLocation,LicenseAssignment
Sandrine@emic.be,Sanne,Voka545464,be,
my command:
addpath = "C:\Users\rens.sergier\Desktop\addusers.csv"
import-csv $addpath | foreach { New-Msoluser -UserPrincipalName $.UserPrincipalName -Displayname $.displayname -Password $.Password -UsageLocation $.UsageLocation -LicenseAssignment $_.LicenseAssignment -ForceChangePassword $false}
If i do it with 1 LicenseSku it worked fine but I want to find a way when it is also possible to assign more than 1 licencse to an user.
I tried with an array in my csv file but that did not work
Can anybody help me?