title: Assign multiple o365 licenses to a single user using PowerShell
body: <p>I'm using a simple Powershell script to add new users to O365 and assign a license. However im trying to add multiple licenses at once to a single user. </p>
  
  <p><strong>Powershell</strong></p>
  
  <pre><code>Connect-MsolService -Credential $UserCredential
  
  Import-Csv -Path "C:\Users\Jesse\Documents\Powershell\NewAccounts.csv" | foreach {New-MsolUser -DisplayName $_.DisplayName -FirstName $_.FirstName -LastName $_.LastName -UserPrincipalName $_.UserPrincipalName -UsageLocation $_.UsageLocation -LicenseAssignment $_.AccountSkuId} | Export-Csv -Path "C:\Users\Jesse\Documents\Powershell\NewAccountResults.csv" -Verbose
  </code></pre>
  
  <p><strong>.CSV</strong></p>
  
  <pre><code>DisplayName,FirstName,LastName,UserPrincipalName,Usagelocation,AccountSkuId
  Test Jesse,Tes,Jesse,test.jesse@(tenant).nl,NL,(tenant):EMS
  </code></pre>
  
  <hr>
  
  <p>For this example i'd like to add the EMS &amp; ENTERPRISEPACK license to the test user.</p>