Adding Users to O365 Distribution List
A script I recently used to add members to an office 365 distribution group using a remote exchange session in a hybrid setup (covered at the end). $SourceFile = "" Import-CSV $SourceFile | ForEach ` {Add-DistributionGroupMember -Identity "Group Name" -Member $_.UPN Write-Host -ForegroundColor Green "Processed the record for $($_.UPN)" } CSV file contains UPNs of…