Hi All
I am using exchange 2010 hybrid environment, I have a csv file in the below format. I want to add the below users to mail enabled security group, will the below syntax work in exchange online and exchange 2010
users
user1@contoso.com
user2@contoso.com
Import-csv C:\userlist.csv | ForEach {Add-DistributionGroupMember -Identity group@contoso.com -Member $_.users}
experts help me with the syntax to create a mail enabled security group from PowerShell in exchange 2010 and exchange online.