Hi All
i have users list in csv file, i want to remove users from the DL, will the below syntax help me.
users
user1@contoso.com
user2@contoso.com
Import-CSV C:\list.csv | ForEach {Remove-DistributionGroupMember -Identity distributionlist@contoso.com -Member $_.users}