Question : PowerShell command to add users to a DL

I have to add 350+ users to a DL. I know there is a PowerShell command to do this but I can't get it to work. Below is what I am using. I found it in a Microsoft article. I want to pull users from a .csv file. Need help! The command below is having issues with the code in bold. Just need the proper syntax.

new-distributiongroup -alias avalanche -name "Avalanche Team" -type distribution -org users -SamAccountName AvalancheTeamimport-csv Avalanche.csv | foreach {add-distributiongroupmember avalanche -member "avalanche$($_.No)"}

Answer : PowerShell command to add users to a DL

with a txt file it changes to the following
1:
2:
$users = Get-Content testdl.txt
foreach ($u in $users) { add-distributiongroupmember testmike -member $U }
Random Solutions  
 
programming4us programming4us