Exchange Online Shell -
Get-Content "C:\New_folder\Members.txt" | Add-DistributionGroupMember salescommunication@xyz.com
===============================================================
$members = get-content "C:\New_folder\distribution.txt"
foreach($user in $members){add-distributiongroupmember -identity "fieldoffices_empmeeitng" -members $user}
No comments:
Post a Comment